View Single Post
 
Old 09-29-2020, 12:53 AM
RAFCRIK RAFCRIK is offline Windows 10 Office 2016
Novice
 
Join Date: Aug 2020
Posts: 6
RAFCRIK is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
You might want to start using Page Break Before formatting for that style so it will always be the first line of a page.
No, that's not the result I'm looking for. I want the header to reflect the number of the chapter to which the first line of the page belongs to.
Unless that first line is in itself a heading 1 or 2 (which means the first line of "real" text belongs to the chapter of said heading).

Actually there are a couple of things I would want to combine. For that to work, they must of course be possible on their own...
  1. Is it possible to create some kind of "IF" formula in which the criterion is that the first line of a page is in a certain style?
  2. Is it possible to somehow (maybe using Visual Basic?) get {STYLEREF "Kop 1;REGEL;Rule" \n \t} of "PAGE -1"?
  3. If #2 is possible, is it possible to run this "formula" on every instance of e.g. "$". A "replace all" if you will.
Reply With Quote