Programming Opening Word to a Blank Document

L

LA Lawyer

I want to open Word 2007 (or go to Word if it is already open) via VBA in
Access and, in any event, end up on a blank document. How is that done?
 
J

Jonathan West

LA Lawyer said:
I want to open Word 2007 (or go to Word if it is already open) via VBA in
Access and, in any event, end up on a blank document. How is that done?

make sure that the end of your code includes the following

objWord.Documents.Add

(where objWord is the name you have given to the Word Application object)

That creates a new blank document and makes it Word's active document.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top