Format Number in Message Box

nigelk

Well-known Member
Joined
Aug 30, 2008
Messages
537
Hi all

I have the following:
Code:
MsgBox "you have a charge of " & Cel.Offset(0, 1).Value

It's coming up as "You have a charge of 2"

but I would like it to read
"You have a charge of £2.00"

(It's formatted ok on the sheet)

can anyone help?

Thanks,Nigel
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Nigel,

Try this:
Code:
 MsgBox "you have a charge of " & Format$(CStr(cel.Offset(0, 1).Value2), "£#,##0.00")
 
Upvote 0
Or maybe

MsgBox "you have a charge of " & Format(Cel.Offset(0, 1).Value, "Currency")

M.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top