Forum Discussion
Runtime error 6 overflow with Dim Double. MacOS Catalina - Excel 2019 - VBA 7.1
Hi,
Please provide some useful info about the problem!
The visible part of the code in the first screenshot doesn't seem to have an error!
However, the Overflow error is one of the most popular runtime errors in VBA, please check out this documentation article to learn more about it and how to fix it.
Regards
- PeterGallinAug 30, 2019Copper Contributor
I have exactly the same problem as isabelaj: When I declare a variable as double I cannot assign any value to that variable. It results always the overflow error message.
- Haytham AmairahAug 31, 2019Silver Contributor
- PeterGallinAug 31, 2019Copper Contributor
Haytham AmairahThank you for your answer. But my problem is not the same because I receive the error message of overflow even with that little program:
Sub test()
Dim a As Double
a = 20.3
End Sub
Error message in the third line.
As I read in an other chat, this program runs well on a Windows Computer but not on the Mac.