Turn syntax checking on or off
Visual Basic includes a syntax-checking feature that:
Checks each statement as you enter it for syntax errors, such as a misspelled keyword or missing separator, and alerts you if there are errors.
Translates the code to an internal form if the syntax is correct, which speeds the transition to run time.
This feature is turned on when you first start, but you can turn it off if you prefer to write code without being alerted to errors as they occur.
To enable syntax checking
On the Tools menu, choose Options.
Select the Editor tab.
Select the Auto Syntax Check check box.
Choose OK.
To disable syntax checking
Choose Options on the Tools menu.
Select the Editor tab.
Clear the Auto Syntax Check check box.
Choose OK.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.