Text boxes in a Template

D

Dale Levesque

How can I determine or better yet, modify the names of the text boxes in my
template. I use the following code to place text values in a template using
text boxes.


.ActiveDocument.Shapes("Text Box 3").Select
.Selection.ShapeRange.TextFrame.TextRange.Select
.Selection.TypeText Text:="HELLO"

Now there are plenty of text boxes and I can't seem to find out what the
names are for them.


Best regards,


Dale
 
J

Jezebel

Why are you using textboxes for this? For most purposes, Bookmarks or
DocProperty fields are much simpler ways to insert text into a document.

But anyway, you can rename your textboxes:

ActiveDocument.Shapes("Text Box 3").Name = "HelloBox"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top