Click Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hope someone has a solution for me.

I want to create one macro that responds to clicks from several buttons/shapes and knows which particular button was clicked to run the macro.

Thanx
 
Nichevo,

You can use something like the following with shapes or buttons from the
forms toolbar. Just right-click on the button or shape and assign the
macro:

Sub who_called()
MsgBox Application.Caller
End Sub

hth,

Doug

Nichevo said:
Hope someone has a solution for me.

I want to create one macro that responds to clicks from several
buttons/shapes and knows which particular button was clicked to run the
macro.
 

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

Back
Top