Find a sentence that starts with certain words and change the style
I am working with a rather old document that does not have any styles associated with it. I am trying to make it a more easily navigable document by first adding some styles so I can create a table of contents. There are several hundred instances where the line of interest begins with "State Community Name: " followed by the community name (e.g. State Community Name: GRASSLAND, State Community Name: FOREST). I'd like to change that line, including the text after "State Community Name:" to Heading 1.
There are also lines that contain ' "X" Rank Specifications: ' where X is variable. I'd also like to change that entire line to Heading 2.
It seems like separate VBA scripts could do these, though I'm not much good yet at figuring out scripts on my own.
Thanks!
|