Display the value inputed in a userform (as bookmark) more then on

T

technogenii

I posted a message somewhere* on this board yesterday about how to develop a
wizard. Doug Robbins suggested I read
http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm which helped
tremendously. Thank you.

Now my question is the following. I've created a bookmark and a userform to
request info from the user. I programmed the VB exactly like in Step 10 of
the tutorial but I want the value to be displayed in many places within the
document. How do I do this? I've tried using Field reference SET, trying to
copy & paste the bookmark tag (it just relocates the bookmark), adding
another line of code "InsertBefore" in the VB. Nothing so far works.

Thanks
Kristina


* I didn't keep the email indicating the location of my thread and there is
no way for me to see the questions that I've asked and even when searching
keywords, I can't find my original post! Hence, the new thread.
 
J

Jay Freedman

Let the code insert the text at the bookmark, as in the tutorial. At all the
other places where you want the text repeated, insert REF fields that all
refer to the name of the bookmark. Before exiting the code, run the
statement

ActiveDocument.Fields.Update

If any of the REF fields are in headers, footers, footnotes, endnotes --
anywhere except in the body of the document -- you'll need a bit more code
to update them.
 
T

technogenii

You guys are fantastic! Thank you. It worked like a charm.
One of the places that the bookmark needs to be updated is indeed in the
footer. Could you please direct me to a tutorial where I could get that bit
of code please.

I have been trying to look through the tutorials (e.g.: I'm stuggling with
ComboBox but I'm determined to figure some stuff out myself!) but sometimes
it's hard to find an answer until you know what you are looking for.

Thanks again,
Kristina
 

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