View Single Post
 
Old 08-27-2021, 04:38 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If the CCs are mapped to the same xml node then you can change one of the CCs to change them all. Alternatively, you can modify the code to replace the text in every instance of the CC with that title
Code:
Public Sub FillCC(strCCTitle As String, strValue As String)
  Dim aCC as ContentControl
  For each aCC in ActiveDocument.SelectContentControlsByTitle(strCCTitle)
    aCC.Range.Text = strValue
  Next aCC
lbl_Exit:
    Exit Sub
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote