I keep getting this error when I compile my project. I have copied and pasted my code into the attached document. After I clear the error message box, my 'Generate ticket number comment is highlighted so I assume means that that is where the error is occurring. If I add End Sub just prior to that comment, I get the following Compile Error: Only Comments may appear after End Sub, End Function, or End Property. When I click OK on that message, the highlighted ("A1") appears.
I'm not sure what is going on here.
Bookmarks