View Single Post
 
Old 07-07-2022, 06:19 AM
Shelley Lou Shelley Lou is offline Windows 10 Office 2016
Expert
 
Join Date: Dec 2020
Posts: 259
Shelley Lou is on a distinguished road
Default VBA Change to correct Heading style

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.

The only problem with creating a List is that not all converted documents are the same, so for instance, the format might be 1., 1.1, 1.1.1, (a), (i) etc. so (a) might actually be Heading 4 and not Heading 3 – there are probably too many variations to create one macro I am suspecting. I thought perhaps a series of If Else might do the trick e.g.

If .Characters.First <> "([a-z]) Then MsgBox Do you want to update the style to Heading 3 yes/no if no select a Heading style update all yes/no

But I'm really not sure.
Reply With Quote