D
DS
I'm using this function to right align Currency in a listbox. It works
great when all of the Prices are $0.00 or when all of the prices are
$00.00 but not when they are both. Can anone see why?
Function PaddedCurrency(Num, Size)
Dim Pad, Fmt
Fmt = Format(Num, "currency")
Pad = String(Size - Len(Fmt), Chr(32))
PaddedCurrency = Pad & Fmt
End Function
Thanks
DS
great when all of the Prices are $0.00 or when all of the prices are
$00.00 but not when they are both. Can anone see why?
Function PaddedCurrency(Num, Size)
Dim Pad, Fmt
Fmt = Format(Num, "currency")
Pad = String(Size - Len(Fmt), Chr(32))
PaddedCurrency = Pad & Fmt
End Function
Thanks
DS