Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default On Click Event

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.
--
Craig
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default On Click Event

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...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default On Click Event

The Worksheet_SelectionChange(ByVal Target As Range) event may work for you.

"Craig" wrote:

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.
--
Craig

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default On Click Event

Thank you...
--
Craig


"William Horton" wrote:

The Worksheet_SelectionChange(ByVal Target As Range) event may work for you.

"Craig" wrote:

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.
--
Craig

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Using Click Event dnj Excel Programming 0 November 11th 04 08:21 PM
Click event to run only once gavmer[_93_] Excel Programming 0 October 12th 04 12:34 AM
Click event to run only once gavmer[_91_] Excel Programming 0 October 7th 04 12:07 AM
On Click Event?, and how to use Wandering Mage Excel Programming 5 June 7th 04 04:28 PM
Click Event Nichevo Excel Programming 2 December 4th 03 04:31 AM


All times are GMT +1. The time now is 08:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"