Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default if error encountered in for next loop

How do I program if an error gets encountered during running commands within
a for next loop, to not stop the macro but continue processing the commands
until the loop ends?

how do I program to tell me what the error exactly was while the loop was
processing so I know what it was to fix it?

thank very much for any assistance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default if error encountered in for next loop

Craig,

Error handling in VB isn't a one-line answer, there are many options. Have a
look at Chip pearson'e site.

http://www.cpearson.com/excel/ErrorHandling.htm

Mike

"Craig" wrote:

How do I program if an error gets encountered during running commands within
a for next loop, to not stop the macro but continue processing the commands
until the loop ends?

how do I program to tell me what the error exactly was while the loop was
processing so I know what it was to fix it?

thank very much for any assistance


Reply
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
Excel encountered an error Dan Excel Discussion (Misc queries) 0 July 30th 07 06:54 PM
error: Excel encountered an error and had to remove some formatting to avoid corrupting the workbook; please recheck your formatting carefully Keith Excel Programming 0 January 31st 07 05:38 PM
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Has anyone ever encountered an error AFTER the macro has completed eluehmann[_5_] Excel Programming 2 August 11th 06 04:16 AM
Extracting data from Access - error encountered Daniel Bonallack Excel Programming 2 August 2nd 06 07:16 AM


All times are GMT +1. The time now is 04:22 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"