Link to home
Start Free TrialLog in
Avatar of BEKSUPPORT
BEKSUPPORTFlag for United States of America

asked on

Calling existing Macros from A Word 2010 Template into VSTO 2010

Hi all,

I have created a custom ribbon tab using the ribbon editor function in VS 2010. I am able to run the tab and all the buttons display the content desired. I am left to now code the macros from the existing modules into the buttons. I can not figure out how to do this. For an example.
 In the ribbon designer
Button 1 is a Watermarks button called button1
I need this to generate a watermark by running the macro within the Word .dotm, Module is Watermarks and the SUB is WMCONFIDENTIAL.

Please assist. Thank you!

Tom
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BEKSUPPORT

ASKER

Hi mas_oz2003,

I will give this a shot. Thank you.

Tom
Hi mas_oz2003,

Thank you so much, it worked beautifully. I just needed to change the ThisDoc to ThisAddIn. Thanks again!

Tom