![]() |
#2
|
||||
|
||||
![]()
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] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Visual Basic error - run time error 504 | crazymorton | Word | 11 | 01-13-2012 04:32 AM |
Visual Basic Editor changes from 2003 to 2007 | Rockitman31 | Word VBA | 4 | 09-21-2011 12:01 PM |
![]() |
Mabozar | Word | 1 | 01-19-2010 02:49 PM |
Referencing Tables in Visual Basic Editor | DavidB | Word Tables | 0 | 09-21-2009 04:01 PM |
![]() |
leroytrolley | Excel | 4 | 08-22-2008 03:57 AM |