M
Murthy
In a particular situation, I wanted to calculate several values on a
worksheet through a macro.
But, I find that some of the vital functions are not available in VBA. For
example - LEN() is not available in VBA. Is there any workaround for this?
Second question - again on fundamental VBA.
A1=10
A2=15
B1=5
B2=20
Sometimes, when I check through VBA
if Range("A1")+Range("A2") = Range("B1")+Range("B2")
this condition evaluates to false, because either of the values would be
something like 25.000000000000000178 or something like that.
(Then I check the values in the individual cells and they are exactly the
same as shown above)
How to overcome this over-precision problem?
Regards,
Murthy
worksheet through a macro.
But, I find that some of the vital functions are not available in VBA. For
example - LEN() is not available in VBA. Is there any workaround for this?
Second question - again on fundamental VBA.
A1=10
A2=15
B1=5
B2=20
Sometimes, when I check through VBA
if Range("A1")+Range("A2") = Range("B1")+Range("B2")
this condition evaluates to false, because either of the values would be
something like 25.000000000000000178 or something like that.
(Then I check the values in the individual cells and they are exactly the
same as shown above)
How to overcome this over-precision problem?
Regards,
Murthy