Display of $ in Msgbox

  • Thread starter Thread starter David
  • Start date Start date
D

David

In XL2000, I use this to display the check# & amount a check was written
for:
MsgBox "Check for $" & Range("I3").End(xlDown)(1, 5) & _
" was #" & Range("I3").End(xlDown)(1, 2)

An appearance problem is that I would like an amount like $12.00 to show as
that rather than $12, or $12.80 instead of $12.8 - OK? I can't use a text
value because these items are summed at the bottom of the sheet.

Any way to get what I want?
 
Hi
try:
MsgBox "Check for $" & format(Range("I3").End(xlDown)(1, 5),"0.00") & _
" was #" & Range("I3").End(xlDown)(1, 2)
 
Frank Kabel wrote
MsgBox "Check for $" & format(Range("I3").End(xlDown)(1, 5),"0.00") & _
" was #" & Range("I3").End(xlDown)(1, 2)

Easy when you know how. Thanks.

I was thinking in that direction after posting and realizing how stupid I
was to say that something in a MsgBox couldn't be text. Never would have
come up with the proper syntax on my own, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top