Bold text in MsgBox

  • Thread starter Francis Hookham
  • Start date
F

Francis Hookham

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
 
J

Jim Cone

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)


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
 
F

Francis Hookham

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
 

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

Top