Hi Sean,
OK, I see I neglected to ask whether this is a form with form fields, or with
just plain bookmarks. But you need either
ActiveDocument.Formfields("Name").Result
or
ActiveDocument.Bookmarks("name").Range.Text
You might find this article useful. Note that you have to sign up for a (free,
one-month trial subscription) to access these archives:
http://www.msofficemag.net/features/2001/02/vba200102cm_f/vba200102cm...
Quote:
> Yes, the bookmarks are still present at that point.
> > There is if the code doing the inserting retains the bookmarks? Are they
> still
> > there? Can you change the code, if they're not?
> > > I have a word template that contains bookmarks. When a form is filled in
> and
> > > submitted, the template's bookmarks get populated with the information
> from
> > > the form. The user then saves this info as a new document. Now, when i
> open
> > > a word document that has already been created (ie. bookmarks are filled
> in),
> > > I want to go to each bookmark and suck out the info and put it back into
> the
> > > form and also delete anything after each bookmark. Is there an easy way
> to
> > > do this?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)