LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Problem with multiple error handling

I wrote a macro to copy data from multiple worksheets on a spreadsheet that I
receive each day. If there is no data to report for one of the worksheets the
worksheet is not included in the spreadsheet that I receive. Therefore I used
multiple On Error statements in my macro (one for each worksheet that may be
missing) to jump to an error handling section for each worksheet to handle
the missing sheet, then jump back into my macro at the section that deals
with the data on the next sheet. The problem that I have is that if more than
one worksheet is missing from the spreadsheet that I receive, then my macro
stops with an error on the second missing worksheet. I have tried inserting
On Error GoTo 0 statements to reset my error handling but that does not help.
What am I doing wrong?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error handling problem Jim G Excel Discussion (Misc queries) 2 October 3rd 07 02:19 AM
Problem with handling on error when file is already open Frank Excel Programming 3 September 22nd 06 04:26 PM
Error Handling problem Brassman[_5_] Excel Programming 3 May 24th 05 03:43 PM
Error Handling Problem Minitman[_4_] Excel Programming 3 November 15th 04 06:52 AM
Excel VBA - Error handling problem brutalmetal[_2_] Excel Programming 2 January 21st 04 03:17 AM


All times are GMT +1. The time now is 08:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"