John has attended:
Excel VBA Intro Intermediate course
VBA error
I received the error"Compile error:Expected:Identifier" when try to create a procedure. The error appeared when hit enter after typing Sub.
Compile error:Expected:Identifier
Hi John
When creating a procedure you have to give the procedure a name.
By pressing Enter immediately after writing Sub causes the "Compile error:Expected:Identifier" error because you haven't named the Procedure.
If you enter
Sub MacroName
and then press enter.
You will create a procedure with no problems unless you already have a procedure in the module with the same name
Carlos