Type-declaration character not allowed

   

While using type-declaration characters is valid in Visual Basic, some data types (including Byte, Boolean, Date, Object, and Variant) have no associated type-declaration characters. This error has the following causes and solutions:

Note   If an explicit variable declaration contains a type-declaration character, inclusion of the character is optional in later references. For example:

Dim MyStr$ 
MyStr = "Because it was explicitly declared, the $ is optional."

For additional information, select the item in question and press F1.