question

LeePolikoff-1397 avatar image
0 Votes"
LeePolikoff-1397 asked

VBA to Add Multiple Content Controls to a Single Table Cell in Word

I need to add multiple content controls and additional text into a single table cell in word using VBA. Here is an example of what I need:

<CC1>Moby Dick</CC1> has been read by <CC2>2</CC2> people who have given it an average score of <CC3>3</CC3> out of 5

I know I can add a single content control with the following syntax:

  With rng.ContentControls.Add(wdContentControlRichText)
     .title = "Book Name"
     .Tag = "title"
   End With

I just can't figure out how to add multiple controls into the range with text between them

office-vba-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers