Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Event handler is invalid | Excel Programming | |||
Event handler in a cell | Excel Programming | |||
where is the workbook_open event handler??? | Excel Programming | |||
different IDispatch in event handler | Excel Programming | |||
Cell Event Handler | Excel Programming |