VBA long overflow
Posted
by
HK_CH
on Stack Overflow
See other posts from Stack Overflow
or by HK_CH
Published on 2008-11-17T22:58:14Z
Indexed on
2012/06/03
4:40 UTC
Read the original article
Hit count: 174
Hi I am trying to do some maths with my VBA excel (prime factorization) and I am hitting the limit of the long data type (runtime error 6 Overflow).
Is there any way to get around this and still stay within VBA? (I am aware that the obvious one would be to use another more appropriate programming language) Thanks for help in advance!
Thank you, it works in so far that I am able to get the big numbers into the variables now. However when I try to apply the MOD function (bignumber MOD 2 for example) it still fails with error message runtime error 6 Overflow.
© Stack Overflow or respective owner