J
Jean Stax
Hi !
The following code generates Overflow error:
Dim NumberP As Long
NumberP = 1078282205 * 31
According to MSDN:
Long variables are stored as signed 64-bit (8-byte) integers ranging
in value from -9,223,372,036,854,775,808 through
9,223,372,036,854,775,807.
What is going wrong there ?
Maybe VBA Long data size differs from VB Long data size ?
Thanks
The following code generates Overflow error:
Dim NumberP As Long
NumberP = 1078282205 * 31
According to MSDN:
Long variables are stored as signed 64-bit (8-byte) integers ranging
in value from -9,223,372,036,854,775,808 through
9,223,372,036,854,775,807.
What is going wrong there ?
Maybe VBA Long data size differs from VB Long data size ?
Thanks