Horace
09-24-2008, 06:21 PM
I want to remove parts of a document. The text is like:
Good good good
good good good
STARTFLAG
bad bad bad
bad bad bad
ENDFLAG
good good good
STARTFLAG
bad bad bad
bad bad bad
ENDFLAG
good good good
...
So I need a script that:
1. Parses through until it hits "STARTFLAG"
2. Saves that spot in a variable
3. Searches until it hits "ENDFLAG"
4. Saves that spot in a variable
5. Sets the Range including the variables to ""
6. Goto 1
Can anyone help?
Thanks a million!
Good good good
good good good
STARTFLAG
bad bad bad
bad bad bad
ENDFLAG
good good good
STARTFLAG
bad bad bad
bad bad bad
ENDFLAG
good good good
...
So I need a script that:
1. Parses through until it hits "STARTFLAG"
2. Saves that spot in a variable
3. Searches until it hits "ENDFLAG"
4. Saves that spot in a variable
5. Sets the Range including the variables to ""
6. Goto 1
Can anyone help?
Thanks a million!