Question: what is syntax error in vba?
Answer: A syntax error, as the name suggests, occurs when VBA finds something wrong with the syntax in the code. For example, if you forget a part of the statement/syntax that is needed, then you will see the compile error. ... In the options dialog box, make sure that the 'Auto Syntax Check' option is enabled.