Hi,
I've run into a problem with my error handling. I didn;t realise that using the On Error Goto line statement actually instigated an error handling routine that rendered future error trapping useless. I was using it as a way to jump say three lines of code and carry on execution
eg
On Error Goto jump
-Error occurs- (1)
.
.
.
jump:
On Error Goto jump1
-Error occurs- (2)
.
.
.
jump1:
But the code hits a fatal error at (2) because it thinks it is in an error handling routine. How do I just jump some lines of code when an error occurs? In the above example, it as a PivotSelect command that sometimes fails because the resulting pivot table is empty and I need to then skip all the copying statements.
Any help would be appreciated.
Thanks,
Ig
I've run into a problem with my error handling. I didn;t realise that using the On Error Goto line statement actually instigated an error handling routine that rendered future error trapping useless. I was using it as a way to jump say three lines of code and carry on execution
eg
On Error Goto jump
-Error occurs- (1)
.
.
.
jump:
On Error Goto jump1
-Error occurs- (2)
.
.
.
jump1:
But the code hits a fatal error at (2) because it thinks it is in an error handling routine. How do I just jump some lines of code when an error occurs? In the above example, it as a PivotSelect command that sometimes fails because the resulting pivot table is empty and I need to then skip all the copying statements.
Any help would be appreciated.
Thanks,
Ig