Font formatting in a userform text box

N

Neil Humphries

I want to create a splash screen with user instructions. To be most readable,
the titles for the different paragraphs should be bold, but the paragraph
should not be.
Can this be done in a text box? If not, what approach should I be using?

Private Sub UserForm_initialize()
Dim Text As Variant
Text = "Controls for editing are on the custom Add-in toolbar" & vbCrLf
& vbCrLf
Text = Text & "This Title should be bold:" & vbCrLf
Text = Text & "The vertical bar ... this should not be bold
Text = Text & vbCrLf & "This Title also should be bold:" & vbCrLf
Text = Text & "You can toggle hidden text... this should not be bold." &
vbCrLf
TextBox1.Text = Text
End Sub
 
D

Doug Robbins - Word MVP

Multiple text boxes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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