mouse selection of shapes

P

perf

Hi all,
I would like to run some vba code when the user selects a shape or an image.

the procedure selectionchange() seem not to be useful with shapes but only
with cells...

can you please help me?

thanks

marco
 
J

John Bundy

Right click your shape and choose assign macro, this won't work of course for
new shapes that the user may put on the sheet that haven't had a macro
assigned.
 
D

Dave Peterson

Depending on the shape, you may be able to just assign a macro to it. Then when
the user clicks on the shape, the assigned macro will run.

Try rightclicking on your shape and see if there's an "assign macro" option.

If there isn't, you may want to share more info--the shape you used especially.
 
P

perf

first of all, thanks to all!

the fact is that i have created and addin capable of drawing blocks made by
grouped standard blocks (and block as a box and a text box, or block etc
etc)...

the user can create these blocks with a toolbar made by me, and I would like
to assign a macro when the user click on some of this shapes in order to
disable the canc button (on some kind of blocks)

I hope you understood my point. add manually a macro is not good for me,
this should be assigne automatically by macro...


thanks for every advice

marco
 

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

Similar Threads


Top