A Return statement must have a corresponding GoSub statement. This error has the following cause and solution:
Make sure your GoSub statement wasn't inadvertently deleted.
Unlike For...Next, While...Wend, and Sub...End Sub, which are matched at compile time, GoSub and Return are matched at run time.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).