Inserting text with multiple formats with VBA in Word

M

melon

I have a Word document with a form. There is a textbox bookmarked as
Names.

I want to insert the following string in that box:

Person A, Person B, Person C

Person A should be in bold, Person B should be italized, person C
should be underlined. How would I do that?

I have the following code:

objWord.ActiveDocument.Bookmarks("Names").Select
objWord.Selection.TypeText "something"
 
Top