Running Word macros

sando

Registered User.
Local time
Tomorrow, 01:19
Joined
Jul 7, 2004
Messages
25
i have set up a button in my db that will open a word document but now I want to be able to run a macro in the word document. does anyone know how?

thanks in advance

:confused:
 
sando said:
i have set up a button in my db that will open a word document but now I want to be able to run a macro in the word document. does anyone know how?

thanks in advance

:confused:

Perhaps you can just put the Word commands in your what you have to open the Word.doc from your DB.

I have about 60 letters that are opened from OnClick on form labels and the data from Access fields is inserted into Word Bookmarks

One part looks like this:

docName.EditGoTo "RSA"
docName.SelectCurIndent
docName.EditCopy

In this case RSA is a Bookmark and SelectCurIndent selects the text from the Bookmark to the end of the letter and of course EditCopy copies it. SelectCurIndent is a Word deal.

So perhaps you can do a similar thing with your Word macros if there is some code for Word than runs the macros.

Mike
 

Users who are viewing this thread

Back
Top Bottom