Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Locating cell change event handler

I have a workbook w/ 10 or so sheets and I want to put in an event handler
to call different macros if different cells are changed by the user. For
testing I've tried putting the following routine in one and all of Modules
1-5 of the workbook project, but can't seem to get it triggered. What am I
doing wrong?

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
MsgBox "Range " & Target.Address & " was changed."
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Locating cell change event handler

Hi John,

Worksheet event procedures should be placed in the sheet module -right-click
the sheet tab, View Code.


---
Regards,
Norman


"John" wrote in message
...
I have a workbook w/ 10 or so sheets and I want to put in an event handler
to call different macros if different cells are changed by the user. For
testing I've tried putting the following routine in one and all of Modules
1-5 of the workbook project, but can't seem to get it triggered. What am I
doing wrong?

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
MsgBox "Range " & Target.Address & " was changed."
End Sub



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
Event handler is invalid Minh[_2_] Excel Programming 2 December 8th 05 02:00 AM
Event handler in a cell Man Utd Excel Programming 3 June 15th 05 07:44 AM
where is the workbook_open event handler??? Steff_DK[_10_] Excel Programming 2 April 25th 04 02:43 PM
different IDispatch in event handler Dirk[_2_] Excel Programming 0 January 23rd 04 11:04 PM
Cell Event Handler David Excel Programming 3 January 19th 04 04:51 PM


All times are GMT +1. The time now is 09:13 AM.

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"