View Single Post
 
Old 07-05-2022, 06:32 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

I have a macro that converts manual numbering to auto Heading styles but this only works for digits. Would it be possible to create code that converts manual (a), (i), (A), (1) at the beginning of paragraphs of unformatted text to a Heading style.

The macro would run on selected text only then first find instances of (a) and an InputBox would ask what Heading style it should be and then change to what is selected, same goes for (i), (A), (1).

It would also need to include variations, for instance, a. or i. etc.

Would this be possible?

level 3 and 4 numbering and body.docx
Reply With Quote