Hi, I've written a short VBA function to give a Boolean true when a number value is referenced which is in the E96 resistor range. The code looks like this:
It works fine up until the equality test, where i have sporadic success. For example if the value passed to the function is 1, the equality test evaluates as true and proceeds accordingly. However if the value passed is 107, the equality test evaluates as false despite normRes and prefRes being the same value and datatype. I am new to VBA, though i do have experience in c++, it is possible i am missing something fundamental. Any help would be greatly appreciated.
Ben
Bookmarks