#1
|
|||
|
|||
How to format multiple headings?
Hi everybody.
I received two documents, formatted as you can see in the image below. Both texts (on the right) generate the table of contents that you can see on the left. The problem is that headings have a different formatting styles, as you can see on the top. How is that possible? My goal is to have the first document formatted as the second one. Is there a shortcut to take all the ABC-level headings (Heading 1 style) and format them accordingly (same process for all the CDE-level headings - Heading 2 style, etc.) without having to do it one by one (considering it's a long document)? |
#2
|
||||
|
||||
Evidently, the two documents have different Style definitions. You could use the Organiser to copy the required Styles from one document to the other. See under Developer|Document Template>Templates>Organizer.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
It depends on how well the documents were formatted to start with.
Work with copies! Try, in the document that is set the way you want, going to the Design tab and saving a Quick Style Set. Then, open a copy of the one you want to update and use your custom style set. Otherwise, here is information about the Organizer. [Edit: The method using the Style Set will not work unless the TOC styles are in the Quick Styles Gallery in the source document. They are not there by default.] The following macro will convert all TOC styles to be Quick Styles so they would be saved in a Quick Style Set. Code:
Sub TOCStyles2QuickStyles() ' Charles Kenyon 2018-02-19 ' ' TOCStyles2QuickStyles Macro ' Set all TOC styles as QuickStyles so they can be included in a StyleSet ' Also makes these automatically update to match formatting ' This is preparatory to saving in a Quick Style Set ' Dim i As Long ' For i = 1 To 9 With ActiveDocument.Styles("TOC " & i) .QuickStyle = True .AutomaticallyUpdate = True End With Next i End Sub Upon further thought, try it without running the macro. The TOC styles are based on Normal which is included in a normal style set. They may well work in the new document because of changes to the normal style. Again, it all depends on how well styles were used in the two documents. Last edited by Charles Kenyon; 02-20-2018 at 07:22 AM. Reason: add info about Style sets not holding TOC styles |
#4
|
||||
|
||||
Cross-posted at: https://www.office-forums.com/thread...ument.2350250/
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Thank you all guys, you opened up a new world for me.
I'm sorry about the cross-posting, didn't know about this rule. I'm deleting the post right now. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to 'hold' multiple headings while scrolling | CliffW | Excel | 2 | 03-22-2017 08:53 AM |
Copy, Paste, and Format Multiple Headings | Dretherix | Word VBA | 2 | 02-12-2016 08:26 AM |
Remove Headings from navigation pane without altering format | helpwithword | Word | 7 | 06-24-2015 02:32 AM |
Multiple Row Headings and Last Column Alignment | Pecan | Word Tables | 6 | 09-13-2013 12:20 PM |
Multiple headings in master, help! | Imploder | PowerPoint | 0 | 08-23-2013 10:25 AM |