View Single Post
 
Old 08-06-2024, 03:17 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 Format manual numbering so auto numbering code can run

Hi Vivka, thank you so much for the updated code, I have struggled for a long time doing all those changes manually. I was getting an error with this part part of the code...

Code:
 .text = "(^13[0-9]{1;})^t"
        .Replacement.text = "\1.^t"
        .Execute Replace:=wdReplaceAll
so I have updated the code to this which seems to work

Code:
.text = "(^13[0-9]{1,})([ ^t])"
        .Replacement.text = "\1.^t"
        .Execute Replace:=wdReplaceAll
Reply With Quote