Template Population

P

Peter S

How would I populate text boxes and check boxes on a word template with data
existing on a VB6 form?
 
J

Jean-Guy Marcil

Peter S was telling us:
Peter S nous racontait que :
How would I populate text boxes and check boxes on a word template
with data existing on a VB6 form?

ActiveX controls or formfields?
Explain the link between the VB6 form and Word.
What Word version?
 
P

Peter S

The template contains TextBox controls (ActiveX)

Use the following for word automation
Set appWord = New Word.Application
Set doc = appWord.Documents.Open("C:\AuditDB\KPI\ACC_Form.dot")

MS Word version is 9.0 (2000)

Thx,
Peter
 
J

Jean-Guy Marcil

Peter S was telling us:
Peter S nous racontait que :
The template contains TextBox controls (ActiveX)

Use the following for word automation
Set appWord = New Word.Application
Set doc = appWord.Documents.Open("C:\AuditDB\KPI\ACC_Form.dot")

MS Word version is 9.0 (2000)

Try this:

doc.TextBox1.Text = "New Text."

May I ask why you are opening the template itself instead of creating a
document based on the template?
 

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