user forms and bookmarks

  • Thread starter Thread starter formtied
  • Start date Start date
F

formtied

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

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

Back
Top