View Single Post
 
Old 09-09-2018, 03:59 PM
jeffreybrown jeffreybrown is offline Windows Vista Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default Split paragraph into two different styles

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.
Attached Files
File Type: docm Standard Data.docm (20.8 KB, 12 views)
Reply With Quote