Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2019, 02:41 AM
herman herman is offline Add a heading for each paragraph depending on the previous paragraphs numbering Windows 7 32bit Add a heading for each paragraph depending on the previous paragraphs numbering Office 2016 for Mac
Novice
Add a heading for each paragraph depending on the previous paragraphs numbering
 
Join Date: Jul 2019
Posts: 3
herman is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 07-15-2019, 05:57 AM
Charles Kenyon Charles Kenyon is offline Add a heading for each paragraph depending on the previous paragraphs numbering Windows 10 Add a heading for each paragraph depending on the previous paragraphs numbering Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #3  
Old 07-15-2019, 06:14 AM
herman herman is offline Add a heading for each paragraph depending on the previous paragraphs numbering Windows 7 32bit Add a heading for each paragraph depending on the previous paragraphs numbering Office 2016 for Mac
Novice
Add a heading for each paragraph depending on the previous paragraphs numbering
 
Join Date: Jul 2019
Posts: 3
herman is on a distinguished road
Default 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.
Reply With Quote
  #4  
Old 07-15-2019, 08:11 AM
Charles Kenyon Charles Kenyon is offline Add a heading for each paragraph depending on the previous paragraphs numbering Windows 10 Add a heading for each paragraph depending on the previous paragraphs numbering Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Look into using the StyleRef Field. See also Useful StyleRef tricks by Suzanne Barnhill, MVP.
Reply With Quote
  #5  
Old 07-15-2019, 09:48 PM
herman herman is offline Add a heading for each paragraph depending on the previous paragraphs numbering Windows 7 32bit Add a heading for each paragraph depending on the previous paragraphs numbering Office 2016 for Mac
Novice
Add a heading for each paragraph depending on the previous paragraphs numbering
 
Join Date: Jul 2019
Posts: 3
herman is on a distinguished road
Default

Thank you, I will look at it.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a heading for each paragraph depending on the previous paragraphs numbering Linking Sub-Heading Numbering to Heading Numbering calmac26 Word 3 03-07-2019 01:58 AM
Add a heading for each paragraph depending on the previous paragraphs numbering Multilevel Lists - List # not resetting after previous heading jjnishio Word 3 11-21-2018 07:58 AM
Add a heading for each paragraph depending on the previous paragraphs numbering Word changing my body text to heading text when I apply paragraph numbering ddiemetric Word 1 01-17-2017 01:10 PM
Add a heading for each paragraph depending on the previous paragraphs numbering 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft