How to allow VBA code for every drawing

Started by nilani, July 31, 2011, 07:10:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nilani

Hi,

I have developed a template.When a user drag and drop a shape in to the drawing window i want to let him see a user form to edit some properties.
I did edit stencil =>edit master=>edit master shape and wrote the macro code to get the user form when the user double click on the shape.
But when I get a new drawing i can not get the form by double clicking on the shape?
How can I made it in the way i want?
Thank you.

Jumpy

If you only want to change ShapeData, go by wapperdude's suggestion in the other thread.

Otherwise place the user form and the VBA code inside the code project of the stencil and instead of using RunMacro use Callthis-Function to call Macro in the stencil:

http://msdn.microsoft.com/en-us/library/aa212649%28v=office.11%29.aspx