Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Word 2007 Delete Macro


(!)

ksrcheck's Avatar
ksrcheck ksrcheck is offline
Computer Specs
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Mar 2009
Experience: Intermediate
30-Mar-2009, 12:14 PM #1
Word 2007 Delete Macro
I need to create a subset of a Word document automatically. Can a macro be created that looks for some "start" tag in the document (like a bookmark or some hidden character) and deletes that part of the document until it hits an "end" tag. Then it continues to search the document for the next set of tags and repeats the deletion process until hitting the end of the document. The result is that those sections without the tags remain. I am VERY new using macros so appreciate any ideas of how to accomplish this.
bomb #21's Avatar
Member with 8,268 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
30-Mar-2009, 12:49 PM #2
Welcome to the board.

The obvious question is ... what (bookmark, special character, whatever) already exists within the "master" document for any code to be able to get its bearings from?
ksrcheck's Avatar
ksrcheck ksrcheck is offline
Computer Specs
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Mar 2009
Experience: Intermediate
30-Mar-2009, 02:44 PM #3
Hi. I am flexible. I was not sure what the macro could handle. Any recommendations for what to use to create a "hidden" tag that the macro could look for?

Karen
ksrcheck's Avatar
ksrcheck ksrcheck is offline
Computer Specs
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Mar 2009
Experience: Intermediate
31-Mar-2009, 08:06 PM #4
Can anyone help? I have now created two bookmarks, one called "Start" and the other "End. I have tagged a section of text that I want to delete. How do I create the macro to do this:
- Find the first Start bookmark.
- Delete content until hitting the End bookmark.
- Continue to search the document for the next Start bookmark.
- Repeat the search and delete until there are no more Start bookmarks found.
- Save the file as "New File".

Thanks to anyone who can help!!
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
delete, macro, word 2007

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2