Adding text into two text boxes issue

A

Anatoly A

I have a Word 2003 VBA program which adds information into two different text
boxes:
ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 10, 10,
150, 60).Select
Selection.Collapse
Selection.TypeText Text:="box1"

ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 10, 80,
150, 60).Select
Selection.Collapse
Selection.TypeText Text:="box2"

This fragment worked fine for many documents, but one. For this particular
Word document I have words:
box1
box2
added to each of two text boxes.

Any suggestions? What is the problem with this particular Word document?
 

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