Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bart,
Need Line numbers but no need to increment a variable. Sub test() On Error GoTo errH 10 x = x + 1 20 x = x + 2 30 x = x / 0 40 x = x + 1 x = x + 1 x = x / 0 50 x = x + 1 Exit Sub 60 x = 10 Exit Sub errH: If Erl = 30 Then Resume Next Else MsgBox Erl GoTo 60 End If End Sub Regards, Peter T "RB Smissaert" wrote in message ... Is it possible somehow to keep track of the last line of code that was run before a handled error occured without adding line numbers or without adding a public variable that gets incremented before every line? I was thinking of perhaps a class handling VBE events, but I think I will need the public variable. I am not keen to add line numbers. RBS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to track bottom line results over time for a trend plot? | Excel Discussion (Misc queries) | |||
Need help - track changes code needs tweaking | Excel Programming | |||
Keeping track of code | Excel Programming | |||
On Error, Capturing current module and actual line of code | Excel Programming | |||
Highlight Track Changes with VBA Code? | Excel Programming |