![]() |
#3
|
|||
|
|||
![]()
Thanks for your reply. Unfortunately, that does not work for me on a Mac. I looked out the Outline view and tried to do what you suggested manually and it won't promote a Heading 1 style to a Title style either.
From playing around with things while recording a macro it looks like the following will do what you suggested manually using keyboard shortcuts Selection.WholeStory Selection.Paragraphs.OutlinePromote However I need to somehow automatically select the text of whatever is in style Heading 1 and change that to Title - > Selection.Style = ActiveDocument.Styles("Title") If anyone knows how I can auto select the Heading 1 text I would be very grateful. The text will be dynamic so I can't look for a set string :-( Last edited by NewVBAUser; 11-30-2021 at 04:54 AM. Reason: more detail added |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
NNL | Word | 1 | 08-09-2017 02:52 PM |
Numbered headings go nuts after level 3/4 | billy8b8 | Word | 11 | 02-05-2016 08:02 PM |
![]() |
emmyb | Word | 1 | 09-10-2014 11:30 AM |
Config style to restart numbering if it it comes after a style of a higher level | ghumdinger | Word | 7 | 08-31-2011 01:10 AM |
![]() |
falieson | Word | 1 | 06-18-2010 12:01 AM |