A family of Microsoft word processing software products for creating web, email, and print documents.
Just in case the artificial idiot knows something I do not, I ran your question through it and got the following response in case it helps
To add text into multiple textboxes using VBA in Word, you can modify the code you provided as follows:
Sub AddTextToTextBoxes()
Dim oShape As Shape
For Each oShape In ActiveDocument.Shapes
If oShape.Type = msoTextBox Then
oShape.TextFrame.TextRange.InsertBefore "[BeginTextbox]"
oShape.TextFrame.TextRange.InsertAfter "[EndTextbox]"
End If
Next oShape
End Sub
This code loops through all the shapes in the document and checks if the shape is a textbox. If it is, it adds the specified text before and after the existing text in the textbox. Note that this code assumes that the textboxes are not nested within other shapes.
That does not seem that different from what you already tried but it is looking for a shape actually labelled as a Text Box.