View Single Post
 
Old 07-07-2022, 03:20 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Shelley Lou View Post
Hi Macropod, many thanks for your response. I do actually use one of your macros for converting manual numbering to Heading numbering which works really well for the digits part.
Ah, yes: https://www.msofficeforums.com/word-...numbering.html

For what you now seem to require, you'd use different variants of the macros for whichever numbering schemes your source documents employ. Simply examine the document to determine numbering scheme, then run the macros applicable to that scheme. Thus, (per the Eileen's Lounge macros) you might have macros named:
ApplyMultiLevelHeadingNumbersA
ApplyMultiLevelHeadingNumbersB
ApplyMultiLevelHeadingNumbersC
and
ApplyHeadingStylesA
ApplyHeadingStylesB
ApplyHeadingStylesC

So, if (a) is Heading 3 in one document and Heading 4 in another, you'd simply choose the variants that fit the Heading 3 or Heading 4 scenario, as appropriate.

And, to further automate things, you might insert a line like:
Call ApplyHeadingStylesA
just before the 'End Sub' of the ApplyMultiLevelHeadingNumbersA macro, and so on.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote