VBA textboxes

D

Darach

Hi

I am working on a Word 2003 application in which I populate the document
with data that I retrieve from a database. The number of pages within the
document depends on the amount of records returned from querying the
database. I have set up an auto text entry that contains all of the fields
(textboxes) for each record. On startup I insert the autotext entries so that
the document displays the correct number of pages to display detail for all
the selected records.

I now need to populate textboxes on the various pages in the doc. I know the
names each textbox (e.g. txtAddress, txtAddress1 for the next page, etc.) but
I don't know how I can set the .text property of each textbox in code because
only the textboxes on the first page will be available at design time.

Can anyone suggest a way around this? Will I nee to try a different appraoch?

Thanks

Darach
 

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