Is there a way in VBA to programmatically get the limits (minimum value, maximum value) of a numeric type (Long for instance) ?
Something like the numeric_limits<long>::min() in C++.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, but they’re fixed size anyway, so you can infer them directly.
Here’s some info on their sizes: http://msdn.microsoft.com/en-us/library/aa164754.aspx
From the article: