Inteligent shape with macro

Started by nitra_ma, October 31, 2017, 06:01:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nitra_ma

Hi,

I want to be able to create shapes stored in a "stencil"  (VSS) and that can use some macros.  So here a couple of questions :
- Where I must store the macros (probably in the stencil file,but do I need to put it in the "THISDOCUMENT" section or in the "modules" section
- How execute the macro when I double click it (cell  EventDblClick = RUNMACRO("?????????.TheNameOfTheMacro")   I ust replace "??????" with what
- In the macro, How can I know wich shape execute the macro
- Can I pass an argument to the macro when it is called

What I try to do is a macro that find the shapes based on one tag in the USER section.  I want to find another shape that have same fields that the one I double click on it.