ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to Bold text in MsgBox? (https://www.excelbanter.com/excel-discussion-misc-queries/102023-how-bold-text-msgbox.html)

[email protected]

How to Bold text in MsgBox?
 
2003

How to Bold text in MsgBox?

Also, in a MsgBox how to display numeric "text" formatted to show place a comma evey 3 numbers (i.e.
1,000 1,000,000) in a VBA computed number?

Thanks

EagleOne

Bernie Deitrick

How to Bold text in MsgBox?
 
EagleOne,

You cannot use bold in a msgbox - you need to use a custom form with a
textbox or label.

As for the format:

Sub NewSub()
Dim myVal As Double
myVal = 1234567.34
MsgBox Format(myVal, "#,##0.00")
End Sub

HTH,
Bernie

<donoteventry; <removes; wrote in message
...
2003

How to Bold text in MsgBox?

Also, in a MsgBox how to display numeric "text" formatted to show place a
comma evey 3 numbers (i.e.
1,000 1,000,000) in a VBA computed number?

Thanks

EagleOne





All times are GMT +1. The time now is 11:43 AM.

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