Author Topic: Accessing Macros in my stencil after dragging a master onto a document  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

markhrosen

  • Jr. Member
  • **
  • Posts: 10
I have made a few very cool shapes. I have made good use of shapesheets, macros, and forms. When I work with the shapes in the stencil everything works fine. When I drag my shape on to a new drawing the menus don't work. The menus are doing a RUNADDON("mymacro").

Do I have to somehow reference the name of the stencil project along with the macro name in the RUNADDON command?

Thanks!

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: Accessing Macros in my stencil after dragging a master onto a document
« Reply #1 on: November 12, 2010, 07:40:32 AM »
There are a couple of ways of calling them.

http://msdn.microsoft.com/en-us/library/aa224223(office.11).aspx

al

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: Accessing Macros in my stencil after dragging a master onto a document
« Reply #2 on: November 12, 2010, 08:58:46 AM »
RUNADDON won't work. You need RUNMACRO (or CALLTHIS) where you can pass along the name of the project.
Details see under Al's Link.

Jumpy