Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.38 KB

turn-syntax-checking-on-or-off.md

File metadata and controls

47 lines (27 loc) · 1.38 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Turn syntax checking on or off (VBA)
vbhw6.chm1009064
vbhw6.chm1009064
1b3719f4-3725-f6b0-b3af-8066515d8ee1
12/27/2018
medium

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

  1. On the Tools menu, choose Options.

  2. Select the Editor tab.

  3. Select the Auto Syntax Check check box.

  4. Choose OK.

To disable syntax checking

  1. Choose Options on the Tools menu.

  2. Select the Editor tab.

  3. Clear the Auto Syntax Check check box.

  4. Choose OK.

See also

[!includeSupport and feedback]