ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Bold text in MsgBox (https://www.excelbanter.com/excel-programming/408960-bold-text-msgbox.html)

Francis Hookham

Bold text in MsgBox
 
Sub MsgTest()
StartMessage = MsgBox("Can this line of text be bold" _
& vbNewLine & "while other lines are plain" _
& vbNewLine & "and others italic?" _
& vbNewLine & " " _
& vbNewLine & "Is it possible for a word within a line to be bold?"
_
& vbNewLine & " " _
& vbNewLine & "Thank you" _
& vbNewLine & " " _
& vbNewLine & "Francis Hookham" _
, 64, "Bold query")
End Sub



Jim Cone

Bold text in MsgBox
 

No, you can use upper case/lower case characters, but that is all the
formatted allowed to the font in a MsgBox.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"Francis Hookham" wrote in message ...
Sub MsgTest()
StartMessage = MsgBox("Can this line of text be bold" _
& vbNewLine & "while other lines are plain" _
& vbNewLine & "and others italic?" _
& vbNewLine & " " _
& vbNewLine & "Is it possible for a word within a line to be bold?"
_
& vbNewLine & " " _
& vbNewLine & "Thank you" _
& vbNewLine & " " _
& vbNewLine & "Francis Hookham" _
, 64, "Bold query")
End Sub



Francis Hookham

Bold text in MsgBox
 
Thanks Jim - what a pity - it would be helpful to be able to emphasise text
occasionally without having to capitalise which I don't like to use.



Best wishes

Francis

"Jim Cone" wrote in message
...

No, you can use upper case/lower case characters, but that is all the
formatted allowed to the font in a MsgBox.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"Francis Hookham" wrote in message
...
Sub MsgTest()
StartMessage = MsgBox("Can this line of text be bold" _
& vbNewLine & "while other lines are plain" _
& vbNewLine & "and others italic?" _
& vbNewLine & " " _
& vbNewLine & "Is it possible for a word within a line to be bold?"
_
& vbNewLine & " " _
& vbNewLine & "Thank you" _
& vbNewLine & " " _
& vbNewLine & "Francis Hookham" _
, 64, "Bold query")
End Sub






All times are GMT +1. The time now is 12:34 AM.

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