In excel macro the following code is generating a runtime 6 error:
>>> use code - tags <<<
If dimensioned as Integer or Long, no error. Also get error if dimensioned as Double. The name of the variable and whether or not include a decimal point after the 1 doesn't matter.
>>> use code - tags <<<
Code:
Sub runerror()
Dim var1 As Single
var1 = 1
End Sub
If dimensioned as Integer or Long, no error. Also get error if dimensioned as Double. The name of the variable and whether or not include a decimal point after the 1 doesn't matter.