Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA User Forms | Microsoft Word Help | |||
Forms Bookmarks If Statements | Microsoft Word Help | |||
User Forms | New Users | |||
How do I set up user forms in Word? | Microsoft Word Help | |||
user forms in templates | Microsoft Word Help |