I am using the following code to load a range into a variant, do a simple calculation and then reload the range..
The normal values of a and b are around .05 and .02. When I first tried this code the range had not been multiplied. I used the locals window and found that a and b were being stored as 1 not 1.04.![]()
Please Login or Register to view this content.
when I increased the value of a and b to 1.55 I found that they were stored as 2. The expected calculation then showed and all the elements were multiplied by 2 not 1.55.
How can I ensure that the numbers are stored in the correct way and then perform properly in the code?
John
Bookmarks