aborting a sub

S

solo_razor

hi,

does anybody know how i can abort a sub using the if then else
statement?

THX
 
J

JON-JON

Use exit sub for example
if thisworkbook.readonly then
'do stuff
else
Exit sub
end if

How this is what you need.

regards,

Jon-jon
 
Top