events

  • Thread starter Thread starter jacob
  • Start date Start date
J

jacob

Hi,
Are there any way to trap the selection of a shape on
a workshhet through an event?

jacob
 
Jacob,

AFAIK, there is no event triggered by selecting a shape, but you could
easily add a macro to the shape to perform any action you desire.

HTH,
Bernie
MS Excel MVP
 
And just to add to Bernie's suggestion. It can be the same macro for all the
shapes.

Option Explicit
Sub testme()
Dim myShape As Shape

Set myShape = ActiveSheet.Shapes(Application.Caller)

MsgBox Application.Caller & _
vbLf & myShape.Name & _
vbLf & myShape.TopLeftCell.Address
End Sub
 

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

News Windows 11 launch event 8
How Determine, cell has got reference. 4
v lookup 2
Excel runs slow 1
Cell change to trigger Macro 2
Application Maximise event 1
Survey Forms and Excel 1
Inputbox Method - cancel Event 1

Back
Top