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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing vba macros from toolbar buttons 1

Status
Not open for further replies.

mochamoo

Technical User
Mar 8, 2005
8
US
I have created a macro that I would like to attach to a button on my toolbar, how do I do this. Also, I have stored the macros in my own folder "C:/MyMacros".
Thanks,
James
 
Hi mochamoo,

First you'll need to load the routine:

Code:
(command "-vbaload" "C:\\MyMacros\\MyMacro.dvb")

Then to run it:

Code:
(command "_-vbarun" "Module1.MySub")

HTH
Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top