Templates and documents

R

RoBo

I am having the following problem wih a Word template.

I created a template wit a number of forms. Through an AutoNew macro, a form
is opened. The user fills out this form; the fields are stored in
documentvariables within the document. The user then sends the document
(automatically saved through VBA code) to the helpdesk of the organization.
The helpdesk would like to open the document with the form that the user
filled in opened in order to add some data to it, print the document and svae
it for future usage.

If this is possible, I would like to know what VBA code I need to do so.

Thanks for your help and suggestions, Ron
 
D

Doug Robbins - Word MVP

I assume that you are talking about a userform.

For this to work, the help desk would need to have the template available to
them (See the article "Distributing macros to other users" at:
http://www.word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm) and you would
need an autoopen macro in the template and in the initialize statement of
the userform, you need to have code the reads the value of each document
variable in the document and sets that as the .Text attribute of the control
on the useform whose .Text attribute was used to store the value in the
document variable when the document was created by the original user.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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