Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
formtied formtied is offline
external usenet poster
 
Posts: 1
Default user forms and bookmarks

I have created a userform which is working, but I can't figure out how to
code the information so that once the requested information replaces the
bookmarked area on the form. For example after doing a merge my form reads:

[ABC, Inc.CompanyName] which should say: ABC, Inc.

Can anyone help me with this?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default user forms and bookmarks

Do you have [CompanyName] in the bookmark in the template. If so, delete it
from there.

Or, you could use:

ActiveDocument.Bookmarks("[bookmarkname]").Range.Text =
[userformcontrolname].Text

That would replace anything that is already in the .Range of the Bookmark
with the data from the userform.

--
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

"formtied" wrote in message
...
I have created a userform which is working, but I can't figure out how to
code the information so that once the requested information replaces the
bookmarked area on the form. For example after doing a merge my form
reads:

[ABC, Inc.CompanyName] which should say: ABC, Inc.

Can anyone help me with this?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA User Forms TByrne Microsoft Word Help 3 November 26th 07 07:43 PM
Forms Bookmarks If Statements DMc2004 Microsoft Word Help 0 October 16th 07 02:20 PM
User Forms Michael New Users 7 January 11th 07 12:42 PM
How do I set up user forms in Word? Allan Microsoft Word Help 2 May 15th 06 02:45 AM
user forms in templates Matt Microsoft Word Help 2 February 24th 05 12:20 AM


All times are GMT +1. The time now is 01:37 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"