To work with content controls, you need to make sure that you have set the Title of the control. You can also install Tag if you want. See Snapshot

And then you can use this code to update the content control or get its value
Sub Sample() Dim cc As ContentControl For Each cc In ActiveDocument.ContentControls If cc.Title = "MyTextBox1" Then cc.Range.Text = "Hello World!" Exit For End If Next cc End Sub
When you run the code, it looks like this:

To get control text, you can use Debug.Print cc.Range.text
Siddharth route
source share