Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA in Word

Status
Not open for further replies.

anastasia

Programmer
Dec 13, 2000
111
GB
Hi,

I have a Word document which within it contains Text Boxes and a Table that I have inserted using Insert table and the Text Box drawing tool which Word provides on the toolbar, this text box has not been drawn using the VBA toolbar.

The problem is how do I in code refer to these text boxes etc. I can refer to text boxes created through the VBA toolbox as these have properties etc, but these text boxes do not, is there a way in which this is possible. I need to use these text boxes as the user has to paste in text. VBA text boxes will not let me paste in any text, the text just appears above the text box. Any ideas?.

The reason I am doing this is so that when a user pastes insome text into the text boxe(s), the text will then be formatted for them etc automatically.
But I have a problem whichever method I use.
 
Instead of trying to work out which text box is which, have a look into bookmarks and/or fields.
Bookmarks let you move to a specific part of the document, where you can then past your data. If you want borders and things around your text, then just draw a square on the page.

HTH

Ben ----------------------------------
Ben O'Hara
bo104@westyorkshire.police.uk
----------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top