Working with Excel 2003, I have a worksheet that I programatically generate from another worksheet. On this worksheet are two events, a selection change event and worksheet_change event. The selection change event just forces an application.calculate. The worksheet change is:
- Private Sub Worksheet_Change(ByVal Target As Range)
-
-
'Ensure we are connected to code and disable all events/updating
-
If Not StartEvent Then Exit Sub
-
-
WBSFinalWorksheetChange Target
-
-
'Reenable events/updating
-
EndEvent
-
-
End Sub
I know the code runs when the worksheet_change should, but if I put a breakpoint on the method header, the code doesn't stop at all. When the code runs, it reaches a command to do a findnext, and never reaches the next line (I used msgbox lines throughout the code to track the codes progress since breakpoints weren't working) There is no error handling in the code, so an error should kick it out, but I think it's a function of the breakpoints not working. Has anyone seem anything like this or have any idea what is going on?