Muokkaa

Jaa


Invalid syntax for conditional compiler constant declarations

Entering conditional compiler constants in an Options dialog box differs from declaring constants in code. This error has the following cause and solution:

  • You used improper syntax when entering a constant declaration in the in an Options dialog box. The only valid syntax is a simple assignment of an integer value to the identifier. Make sure the syntax for the entry is as follows, with each constant separated by a colon (:):

    constantname= [{+ | - }]integervalue: [{+ | - }]constantname=integervalue  [...] 
    
    

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

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.