View Single Post
 
Old 03-09-2012, 05:05 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,385
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi gurp,

If you want the text on the userform to appear bold, set the font attribute for that element to bold. For example:
TextBox1.Font.Bold = True

If you want the output in the document to be bolded, set a range object to the destination, populate the range, then format the range as bold. For example:
Code:
Dim Rng As Range
Set Rng = ActiveDocument.Bookmarks("SomeBookmark").Range
With Rng
  .Text = TextBox1.Text
  .Font.Bold = True
End With
ActiveDocument.Bookmarks.Add "SomeBookmark", Rng
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote