Only comments may appear after End Sub, End Function, or End Property

   

Only comments, directives, and declarations are permitted outside procedures. This error has the following cause and solution:

For additional information, select the item in question and press F1.