I am getting a run time error 6 when the following routine runs. I can’t understand why because 330 * 100 = 33,000 and the range of a long is -2,147,483,648 to 2,147,483,647.</SPAN>
Does anyone know what is happening here? Thanks.</SPAN>
Does anyone know what is happening here? Thanks.</SPAN>
Code:
Sub foo()
Dim num As Long
num = 330 * 100
Debug.Print num
End Sub