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

XL macro from Word with parameters

Status
Not open for further replies.

Ixthus

Programmer
Jan 14, 2003
1
US
How do I run an Excel macro from Word using parameters established in Word. Thanks in advance.
 
Assuming you have an excel application variable already established, named xl, you'd use:

xl.run "macroname",arg1,arg2,....

For some reason, this works for macros contained in the currently active workbook in Excel, but not for macros in personal.xls.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top