Illegal use of escape character in identifier: <name>

You included an escape character in one of the following contexts in which that character is not allowed:

  • In a declared name (a variable, constant, procedure, class, or user-defined data type)
  • In the name of an implicitly declared variable
  • In a label definition or reference
  • In the name of the reference variable in a ForAll statement

For example:

Dim fo~x As Integer   ' Illegal

Remove the escape character.