Cannot Assign a Value to this Property Error

You tried to assign a value to a constant or other object type that does not accept a value.


Example

Assigning a value to a constant:

Const SerialPort=1080
SerialPort=1040

See Also

Const, Dim statements.