View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Fingerjob Fingerjob is offline
external usenet poster
 
Posts: 26
Default Overflow error.. why?


Dim x As Long
x = 2000 * 365

Why is this statment generate a : Overflow (Error 6)
I dont understant it since x is "long" and should be able to store this
large number.

Could someone please try to explain it.

I know that the statement under will solve it.
Dim x As Long
x = CLng(2000) * 365

Best regards
Petter Bøhler