I don't think I understand. Converting the (decimal) number 400118E0 (scientific/exponential notation meaning 400118*10^0) to a long integer correctly interprets the number as 400118. Is the input supposed to be a hex number (hex 400118E0 = dec 1073813728)? If the inputs are supposed to be hexadecimal, I think you have to do something additional to tell VBA that those are hex numbers. If you don't, then VBA will assume they are decimal numbers. I never deal with hexadecimal numbers, so I am not sure exactly how that should be done. My one real encounter with hexadecimal suggested preceding hex numbers with &H
or use some kind of Hex2Dec() function.
Bookmarks