Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Word Macro(s) in VB Word object

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm using a word object in my VB app.
When I have an active document open,
I need to use the macro menu option under the tools menu in the word app (all this in vb code).....

Any suggestions would be appreciated!

Many thanks

Eddie
 
Use:
<Word Object>.CommandBars(&quot;Macro&quot;).Controls(x).Execute

Replace X with index of action required e.g. 1 represents Tools|Macro|Macros

HTH

M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top