I know how to do this manually by using the Style Seperator, but when recorded, I just get...
Code:
Sub Macro3()
Selection.TypeParagraph
Selection.InsertStyleSeparator
End Sub
I can find the word Statement of Conditions, but how do I find between the end of the word "Conditions" and the beginning of the word "The" to create the split? Statement of Conditions will Heading 1 and the rest of the paragraph will just be Normal style.
Quote:
Statement of Conditions. The normal hours of operation vary depending on size and/or location: smaller libraries usually operate 20-40 hours per week and larger libraries operate 40- 60 hours per week. There are no general conditions (environmental, equipment, facility, performance standards, or wartime conditions) that have an impact on the manpower requirements.
|
I'm using a couple of macros to first apply Heading 1 to three different words and then applying Heading 2 to everything in-between Heading 1.
Example and macros attached with before and after.