|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Add a heading for each paragraph depending on the previous paragraphs numbering
I am not sure if it is possible to write a macro for what I want to do.
In South Africa the de Villiers-Pama genealogical numbering system is used. It starts with the proginetor's children as b's, the second generations c's, the third d's and so forth. The example below shows this person as the h (8th) generation with the genealogical number b3c3d2e2f15g5h2. I want this number to appear in the header of the document, if this person is the first genealogical number at the top of the page. What I have done is to give the long genealogical number a "body text" style with colour white, size 1 (for the example I made it 5), so that you cannot see the long number, but it will appear in the header. If the next number does not follow on the previous one, then it must go back to the number which preceded the next number, i.e. as in the example, the f15 genearation stops with g5h2i2 and the next line starts with f16. There are no more numbers after g5, h2 and i2. The next generation should read g1 b3c3d2e2f16g1. The g1 will always be visible, but the long number will be hidden. Is it possible to do this with a macro or must I keep typing it in? I will appreciate any help. h2 b3c3d2e2f15g5h2 Petrus Johannes * 26.08.1957 i1 b3c3d2e2f15g5h2i1 Petronella Margaretha * 01.12.1980 i2 b3c3d2e2f15g5h2i2 Madeleen f16 b3c3d2e2f16 Simon Johannes Jacob * 03.09.1880 ≈ Winburg 17.10.1880 g1 Petrus Johannes * 14.06.1905 † 26.11.1965 h1 Hester Secilia * 17.05.1929 |
#2
|
|||
|
|||
In your question you are referring to both headings and headers. This has confused me.
What is the difference between headings and headers? See How to create numbered headings or outline numbering in Ribbon Versions of Word by Shauna Kelly which allows up to nine levels of numbering in headings and allows inclusion of previous levels as part of the numbering. This is not a macro but rather linking numbering to styles. Last edited by Charles Kenyon; 07-15-2019 at 08:12 AM. |
#3
|
|||
|
|||
Add a heading for each paragraph depending on the previous paragraphs numbering
Yes, it is confusing, I am really looking at adding a header at each page. I have checked the links but it did not help me.
|
#4
|
|||
|
|||
Look into using the StyleRef Field. See also Useful StyleRef tricks by Suzanne Barnhill, MVP.
|
#5
|
|||
|
|||
Thank you, I will look at it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking Sub-Heading Numbering to Heading Numbering | calmac26 | Word | 3 | 03-07-2019 01:58 AM |
Multilevel Lists - List # not resetting after previous heading | jjnishio | Word | 3 | 11-21-2018 07:58 AM |
Word changing my body text to heading text when I apply paragraph numbering | ddiemetric | Word | 1 | 01-17-2017 01:10 PM |
Populating ranking depending upon ranges of previous cell's data | sryder | Excel | 5 | 04-07-2016 03:37 PM |
Create a fillable form that changes a paragraph depending on what is chosen in a drop down list. | Sullivanaudio | Word VBA | 1 | 03-31-2015 10:45 PM |