VBA code outputs currency value rounded to 2 decimal points
Oh ye of little faith. <vbg
I hope you tried it earlier and just posted your results now. I find that VBA's
help for .value2 kind of confusing. By saying that it doesn't use Currency or
date data types, it sounds (to me) like this wouldn't apply to currency or
dates.
I now read it that it ignores those Currency and date data types and brings back
the underlying value--as a "raw" number.
MarkM wrote:
Hi Guys,
Dave suggested using Value2. Initially I did not use this as according
to VBA Help, Value2 property doesn't use the Currency and Date data
types, but I thought it best to try it before posting the code and to
my surprise it actually works.
Sorry I doubted you Dave.
Thanks for you help
Mark
--
Dave Peterson
|