ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Number format in a message (https://www.excelbanter.com/excel-programming/272008-number-format-message.html)

Lianna

Number format in a message
 
I have a message box that shows a message and a value from
a worksheet. How do I define the number format of the
value in the message box?

I'm using Excel 2000.

Thanks,
Lianna

Tom Ogilvy

Number format in a message
 
If you want to display what is displayed in the cell rather than the
underlying value

msgbox Range("a1").Text

rather than
msgbox Range("A1").Value

Regards,
Tom Ogilvy


"Lianna" wrote in message
...
I have a message box that shows a message and a value from
a worksheet. How do I define the number format of the
value in the message box?

I'm using Excel 2000.

Thanks,
Lianna





All times are GMT +1. The time now is 01:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com