1

I have unexpected truncation in a named range in Excel when accessing the value in VBA.

I have a cell called "temp"

When the 'temp' cell has -$0.00002 the following VBA code returns "0".

When the 'temp' cell has -$0.02 the following VBA code returns "-0.02".

MsgBox (Range("temp").Value)

Why is VBA not getting the right value in the first case? How can I fix this?

Thank you

user2946746
  • 1,740
  • 3
  • 21
  • 36

0 Answers0