I write the code in Excel VBA and then call that code from a Visual Basic .exe file.
By doing that I can then easily automate Access, Word, PowerPoint and MapPoint through Excel VBA - it is sometimes difficult to do that directly from vb, particularly Access.