Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Mike H." wrote in message
... If I issue this command: application.goto Reference:="MyRange" and the named range "MyRange" does not exist, is there a way to programatically pick up the name of the range that the error failed on. I am using error handling and my initial idea was to place a line above the command: referencename="MyRange", but if I missed doing this I'd get the wrong message in my error handling area. So that is the reason for this question. The method you're using is the correct one, and yes, it does place the onus on you to make sure that you have placed these "debug" strings everywhere they need to be. We all wish that error reporting would tell us all sorts of things, but in VB/VBA it doesn't. There may be some sort of API voodoo to get the current call stack, but it's nothing built-in to the language. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
filter for missing values in a range | Excel Discussion (Misc queries) | |||
Missing blank in Dynamic range | Excel Worksheet Functions | |||
Rounding a large range & a Missing Font | New Users to Excel | |||
Missing Numbers from a Range | Excel Programming | |||
Missing Data in a Range | Excel Programming |