You declared a constant, but assigned it a variable expression (a value that can change). Constants cannot contain runtime code.
To correct this error
-
Do not use expressions when declaring constants.
Visual Basic Scripting Edition |
Expected literal constant |
See Also |
You declared a constant, but assigned it a variable expression (a value that can change). Constants cannot contain runtime code.
Do not use expressions when declaring constants.