View Single Post
 
Old 07-31-2019, 06:12 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Populating content controls is easy enough, either
Code:
Dim oCC As ContentControl
Set oCC = ActiveDocument.SelectContentControlsByTitle("title of control").Item(1).Range.Text = whatever
or
Code:
Dim oCC As ContentControl
    For Each oCC In ActiveDocument.ContentControls
        If oCC.TITLE = "title of control" Then
            oCC.Range.Text = whatever
        End If
    Next oCC
The first will produce an error if there is no such named control.

You may find Insert Content Control Add-In useful
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote