Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Newb VBA question
How do you return from a sub early? I have code that looks like
If x < 5 Then Return End If I get a Return without GoSub error. Coming from a C++ background so I have no idea what is going on. Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Newb VBA question
If it is a Sub, then use Exit Sub.
If it is a function, then use Exit Function. Rick wrote in message ... How do you return from a sub early? I have code that looks like If x < 5 Then Return End If I get a Return without GoSub error. Coming from a C++ background so I have no idea what is going on. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Newb VBA sub... | Excel Programming | |||
Newb Q: XLL and XLA? | Excel Programming | |||
Extreme newb, easy question: Simple button/scrollbar coding | Excel Programming | |||
Help a newb.... | Excel Discussion (Misc queries) | |||
VBA newb needing help with an IF | Excel Programming |