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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link user form to Word document

Status
Not open for further replies.

newprogamer

Programmer
Sep 22, 2004
107
US
Hello Everyone,

I have created a VBA user form that has a command button. When this command button is clicked, it should open a form in Word that will be a summary sheet for the data entered on the form. The data on the form has been linked to cells in excel.

How do I open the Word document?
How do I link the excel cell (or combo box) data to the Word document?

Any help or advice on a good source would be greatly appreciated.

Thanks,
New Programmer
 
You must create an instance of Word. See Help on CreateObject.

If the Word document exists, then use Documents.Open filename to open it.

If the Word document is using Form Fields to hold the information, then pass the information to the .Result property of the form field.

Hard to much else without knowing how you arestructuring the Word document.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top