How to Update other Document Text field

E

eric leung

I have one VBA application run on Word, the program generate new document
using template.
In the template have some Text field in the header(Control Toolbox, Text
field), I want to know how to update those field ?

Public Sub Build_doc()
Dim x As Document
Set x = Documents.Add(Template:="Invoice.dot", Visible:=True)
'x.txtInvoice.Value = "ddd"

End Sub
 

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