Bookmarks and Merging

G

Guest

I have a coversheet on all my documents. A bookmark
surrounds the coversheet which has a macro selecting the
bookmark and deleting it.

Problem is when bookmarks are deleted out when merging a
document. I have altered the merge code to call my macro
deleting the bookmark, but obviously it no longer exists
after merging.

So, any other ideas of identifying the area which needs to
be deleted when merged? (no point leaving it there for
the user to manually remove as bookmarks still don't
exist!). It will always basically be everything before
and including the first section break. Perhaps I could
search for an re-insert bookmark manually and then call it
to delete??

WHY haven't they fixed this yet?
 
J

Jezebel

I have a coversheet on all my documents. A bookmark
surrounds the coversheet which has a macro selecting the
bookmark and deleting it.

Problem is when bookmarks are deleted out when merging a
document. I have altered the merge code to call my macro
deleting the bookmark, but obviously it no longer exists
after merging.

So, any other ideas of identifying the area which needs to
be deleted when merged? (no point leaving it there for
the user to manually remove as bookmarks still don't
exist!). It will always basically be everything before
and including the first section break. Perhaps I could
search for an re-insert bookmark manually and then call it
to delete??

Why bother with bookmarks? To delete everything up to and including the
first section break, use

ActiveDocument.Sections(1).Range.Delete
 
D

Doug Robbins - Word MVP

Delete the coverpage before executing the merge. Then you don't need the
bookmarks.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
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

Top