Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
technogenii - 13 Oct 2005 16:41 GMT
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.
Jay Freedman - 13 Oct 2005 18:08 GMT
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.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

> I posted a message somewhere* on this board yesterday about how to
> develop a wizard. Doug Robbins suggested I read
[quoted text clipped - 16 lines]
> when searching keywords, I can't find my original post! Hence, the
> new thread.
technogenii - 14 Oct 2005 16:29 GMT
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

> 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
[quoted text clipped - 27 lines]
> > when searching keywords, I can't find my original post! Hence, the
> > new thread.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.