troubleshooting Question

VBA Word - Delete certian pages

Avatar of noisecouk
noisecouk asked on
Microsoft OfficeMicrosoft Word
9 Comments1 Solution6262 ViewsLast Modified:
Hello Experts,
What i want to do is delete certian pages within a document. A have a macro which imports from elsewhere onto a new pages within this word doc. Running the same macro will create duplicate info.

I thought this would be simple but cant find the answer.

Lets say for this example, its a 30 page document, the pages i want to remove are pages 25-28. The page numbers will vary though.

I have bookmarks defined on pages 25-28 which are created, these are called "BM_1", "BM_2", "BM_3". The bookmark does not hold any text. The only thing on each page is an image.

I need a macro which will simply goto "BM_1" and delete the entire page its held on (also deleting the BM_1 bookmark and the image held on that page)

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros