In word how to you enter details that update the document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want something that when i open a word document, it asks me a few
questions. e.g. Employee Name, Date, Job title. This would then populate the
document with these answers, e.g. it would insert the name in several places.
 
Graham,

Thank you for this repsonse, it was most helpful. One question, is it
possible to enter the same bookmark in the document more than once? E.g. I
have created a template letter and need to insert the same text from the
Userform 3 times, the persons name. Is this possible and if so how?
 
You can't insert the same bookmark name more than once, but you can cross
reference from a bookmark any number of times with REF fields. You could
also use the code backing the userform to enter the gathered text anywhere
in the document.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks Graham. I've tried "insert > Field > Ref" and then selecting the
bookmark but the data is still only inserted in one place. Am i doing
something wrong? Or how could you do it with code?
 
You need a ref field for each occurrence.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Graham, sorry i must be missing something. I have created the bookmark and
that inserts ok. I have then inserted a REF to the bookmark where i want the
information inserted for a second time but nothing happens?

Is it easier to do this with the code, if so how?

Thanks for your help on this.

Giles
 
How did you apply the bookmark? You need to either select the text to be
bookmarked before applying the bookmark or prompt for the bookmark with an
ASK field
You will probably need to update the REF field(s). The code to make this a
one click task you'll find at
http://www.gmayor.com/installing_macro.htm
Userforms are more elegant but require programming - you will find out how
to do that from the link I posted earlier.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top