From: Richard McBride on 21 Jan 2010 00:21 Hi all I am building a document template using Office 2007 however the template must work in Office 2003. What I want to do is have the document ask the user for input when the document opens, then have the document place that input in to document in specific places. The specific information I want the user to input is the Client name. I know that I can use an ASK and REF field combination to do this. However I also see that Word has a document property called Client. Is there a way to prompt for the user to input the Client property when the document is opened and how can I place the value of that property in my document? Which approach would be more effective - using the Client property or using the Ask/Ref field combination? Thanks Richard
From: Graham Mayor on 21 Jan 2010 01:50 The most elegant way to do this is to present a userform from an autonew macro in the document template to collect the required data, then assign the results of the fields on the form to document variables, and finally update the docvariable fields that you have placed in the template where you want the data to appear. For the basics, see Word MVP FAQ - Userforms http://word.mvps.org/FAQs/Userforms.htm for a more in depth explanation, see http://gregmaxey.mvps.org/Create_and_employ_a_UserForm.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Richard McBride" <RichardMcBride(a)discussions.microsoft.com> wrote in message news:8FEBC75F-16CE-40F7-B5DE-4EF0A910B6A4(a)microsoft.com... > Hi all > > I am building a document template using Office 2007 however the template > must work in Office 2003. > > What I want to do is have the document ask the user for input when the > document opens, then have the document place that input in to document in > specific places. The specific information I want the user to input is the > Client name. I know that I can use an ASK and REF field combination to do > this. However I also see that Word has a document property called Client. > > Is there a way to prompt for the user to input the Client property when > the > document is opened and how can I place the value of that property in my > document? > > Which approach would be more effective - using the Client property or > using > the Ask/Ref field combination? > > Thanks > > Richard
|
Pages: 1 Prev: Word should add image-count tool or property Next: Duplex printing with macros |