Visual Basic for Applications Reference
See Also Specifics
A Return statement must have a corresponding GoSub statement. This error has the following cause and solution:
- You have a Return statement that can't be matched with a GoSub statement.
Make sure your GoSub statement wasn't inadvertently deleted.
For additional information, select the item in question and press F1.