from vb4 help file (all i have on this computer)
A Return statement must have a corresponding GoSub statement. This error has the following cause and solution:
You have a Return statement that cannot be matched with a GoSub statement.
Make sure your GoSub statement was not unintentionally deleted.
Unlike For...Next, While...Wend, and Sub...End Sub, which are matched at compile time, GoSub and Return are matched at run time.
Dragnut