On Click Event

G

Guest

Is there an event in Excel VBA where I can trigger an event when the user
selects a cell? Sort of like an oncurrent event in Access, where an event is
fired when the user clicks on a cell. As the user selects cells, I want an
event to fire based on the activecell's value or contents.

I know there is a Worksheet_Activate event - I'm looking for a Cell_Activate
event.

Thanks.
 
M

Mark

Private Sub Worksheet_Change(ByVal Target As Range)
MsgBox "Something just changed, time to act!"
End Sub

or

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
MsgBox "A new cell has been selected, maybe act here?"
End Sub

One of the two is bound to be what you are after...
 

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