98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Overflow error for long integer
vba courses london - Overflow error for long integer
Resolved · Low Priority · Version Standard
Femi has attended:
Excel Intermediate course
Excel Advanced course
Excel VBA Intro Intermediate course
Overflow error for long integer
The MS VB help file has an example of an overflow error, i.e.
dim x as long
x = 2000 * 365
Why does this produce an overflow error when x would be 730,000, which seems to be within the range of
-2,147,483,648 and 2,147,483,647?
RE: Overflow error for long integer
Hi Femi
I have looked at this and even searched the net and I think there is an error on the example.
The dim should have read:
Dim X as Integer
All the examples I found used Integer, and the Help file example works perfectly using it.
Carlos
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
VBA tip:Stop Display Alerts In ExcelWhen creating or deleting a Worksheet in Excel you don't want Excel to inform you "A file already exists....." Or "Do you want to save this file...". |