Possible causes:
An invalid expression has been used to assign a value to a symbolic constant. Valid expressions are described in the Const topic.
An undefined constant is referred to. For example, if "D" is not defined, the following produces this error:
Const C = D
Dim X As String * 0