Thread: Error Trapping
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Alan McQ via OfficeKB.com Alan McQ via OfficeKB.com is offline
external usenet poster
 
Posts: 5
Default Error Trapping

You can use one of 2 options

1. On Error Resume Next

This will go to the next line when an error is met

2. On Error GoTo TellError 'change TellError to whatever name you want to use

You will need to index TellError in the procedure by entering it at the
bottom of the procedure as follows

TerrError:

Where you want to stop the error trapping use On Error GoTo 0. For point 2,
also remember to use Exit Sub before you index TellError:

HTH

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200906/1