E
Ellen
I'm trying to write some code that will divide a number by two and give a
decimal result. So 33 divided by 2 would give me 16.50, not 16, like I'm
getting.
Do you know if I'm doing this wrong or if this is a Word limitation?
Dim cLA1 As Currency
Dim cLA1Half as Currency
cLA1 = "33.00" (I've tried it with and without the quote marks - it
doesn't seem to make any difference)
cLA1Half = Format((cLA1 \ 2), "$#,##0.00;($#,##0.00)")
MsgBox cLA1Half
decimal result. So 33 divided by 2 would give me 16.50, not 16, like I'm
getting.
Do you know if I'm doing this wrong or if this is a Word limitation?
Dim cLA1 As Currency
Dim cLA1Half as Currency
cLA1 = "33.00" (I've tried it with and without the quote marks - it
doesn't seem to make any difference)
cLA1Half = Format((cLA1 \ 2), "$#,##0.00;($#,##0.00)")
MsgBox cLA1Half