Hi,
I'm having to do a lot of formatting to a Word DOCM doc, using VBA to clean it up (it's eventually going to be a database file). I've managed to do most of it ok, but there is one thing that I absolutely cannot figure out, no matter what I try. It's this: I need to do a find and replace, and can't find the way to make it work.
The file is hundreds of pages, in single column format. The lines look like this:
ab ab
blab (z,d) blab
dab (z,d) dab
drab drab
fab fab
flab flab
gab (z,d) gab
Now, the problem is this. The lines that DON'T already have something in braces need to have them inserted artificially. It will always be (-,-).
SO the search/replace needs to do this:
Go to the first line in the doc.
Where there isn't something in braces after the first word, insert (-,-).
Look at the next line. do that if needed.
Repeat to end of doc.
Sounds simple, but I'll be damned if I can make it work!
Any help with this will be deeply appreciated.
Thanks in advance.
Bookmarks