Passing shape variables to VBA

M

Mike Movchan

What I'm trying to do:
I want to double click a shape and have it run some code specific to that
shapes Name or NameID. Right now I have it setup to run a macro on a double
click event through the shape sheet properties, this is good, but I dont
want to have a macro for each shape, so it would be helpful if I could pass
the NameID to the macro as a variable where I could then share the same Sub
for all shapes.

Regards,
Mike M
 
M

Mark Nelson [MS]

The CallThis function passes the shape object as the first argument to your
procedure. That way you know where the call comes from.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top