Take a look at
Useful StyleRef tricks by Suzanne Barnhill, MVP. It should give you a start with using the
StyleRef Field. The StyleRef field is one of the underutilized tools provided by Word.
I would recommend getting rid of all of the \* MERGEFORMAT switches.
I know of no way of ignoring a target style on the same page as the header when it is not in the first line.
You might want to start using Page Break Before formatting for that style so it will always be the first line of a page.