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"
 

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