Forum Discussion

SteveDatz's avatar
SteveDatz
Copper Contributor
Mar 14, 2022
Solved

How to change max number of VBA function

Hello I wrote a custom function in excel, but when I use large numbers (250,000) it comes back as #=NUM! Only relevant info I found seems to be here: https://support.microsoft.com/en-u...
  • HansVogelaar's avatar
    Mar 14, 2022

    SteveDatz 

    The range of Integer is -32768 to +32767.

    Use Double or Currency for BaseCost, and Long for NumOwned.

Resources