Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-05-2022, 06:32 AM
Shelley Lou Shelley Lou is offline VBA Change to correct Heading style Windows 10 VBA Change to correct Heading style Office 2016
Expert
VBA Change to correct Heading style
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Change to correct Heading style Word 2007: Unable to change character style, when using a linked Char/Para style format Last Chance Word 3 06-09-2021 12:52 PM
Using numbered list style, how to indent text immediately following heading to match heading indent? SpechtacularDave Word 3 09-25-2019 01:22 PM
Heading not following the correct numbering jongleur Word 2 05-16-2017 10:52 AM
VBA Change to correct Heading style Tab character causes style change to Heading 4 after macro Jennifer Murphy Word VBA 2 12-14-2015 02:31 AM
VBA Change to correct Heading style Unable to correct auto number of heading 5 KieranWood Word 2 03-03-2011 09:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:43 AM.


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