Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyway to set rule for XStatus error?

Status
Not open for further replies.

blckngldhwk

Technical User
Feb 14, 2008
46
0
0
US
Is there a way to tell the macro to Exit Sub if at any point there is an XStatus error of value 3 (typing in protected cell)?

I can use an 'If statement' several times through the macro but I'd like to just use one statement at the beginning if possible. Thanks!
 


Hi,

Check out Error Handling in Extra VB Help.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top