I have several routines in my Sub that all use an "if not". In the case of "if not" being true each routine does the same (see example). This makes the program length very long. Therefore I thought it would be nice if I could jump instead to the last "do various things" before End Sub. That way I could remove the "do various things" from each routine which would significantly shorten the Sub. How do I do that?
![]()
Sub Example() If Not Len(whatever) > 0 Then do various things End Sub End If do other things If Not Len(whatever) > 0 Then do various things End Sub End If do other things do various things End Sub
Bookmarks