Mar 19, 2001 #1 davidandrews8 Technical User Joined Mar 9, 2001 Messages 5 Location GB Does anyone know the line of code I could use to stop an Excel macro in my IF statement
Mar 20, 2001 #3 dsi Programmer Joined Mar 13, 2000 Messages 964 Location US If you are using a form: Code: Unload Me End Upvote 0 Downvote
Mar 20, 2001 #4 Katerine Programmer Joined Mar 9, 2001 Messages 234 Location US Or in case you want to continue the code if the condition is false: If condition then ... Exit Sub ' or "Exit Function", if it's a function Else ... End if ... End Sub ' or "Function" Upvote 0 Downvote
Or in case you want to continue the code if the condition is false: If condition then ... Exit Sub ' or "Exit Function", if it's a function Else ... End if ... End Sub ' or "Function"