Do the following in the VBA editor window (called "Microsoft Visual Basic for Applications"):
Select the Tools menu and then Options .
On the Editor tab, select Automatic Syntax Check . (See screenshot below.)
This change does not allow the editor to stop compiling in the background and mark syntax errors in red (or other formatting is indicated on the Options tab).
MS Office programs use a common VBA editor, so if you change a parameter while editing VBA for Excel, you change it to Outlook, Word, etc.

ray Jul 19 '12 at 13:29 2012-07-19 13:29
source share