![]() |
|
#3
|
|||
|
|||
|
You probably do not want to leave that option turned on.
What happens when I send my document to someone else? Will Word mess up my formatting? Quote:
Put the following macro in your normal template: Code:
Sub UpdateMyStyleOnOpen()
' Charles Kenyon 2018-03-22
' https://www.msofficeforums.com/word/38569-style-used-all-documents-new-old.html#post126054
'
' UpdateMyStyleOnOpen Macro
' Copies named style from normal template to any document that is opened, overwriting existing style
'
' Rename as AutoOpen (instead of UpdateMyStyleOnOpen) and store in Normal.dotm template.
' Set variable strMyStyle to contain the name of style to be updated
'
'
Dim strMyStyle As String
strMyStyle = "Body Text"
' change this to be the style you want
' must enclose name in quotation marks
'
Application.OrganizerCopy Source:=ThisDocument.fullname _
, Destination:=ActiveDocument.fullname, Name:=strMyStyle, _
Object:=wdOrganizerObjectStyles
End Sub
Installing Macros If you already have an AutoOpen macro, do not rename, but instead add the following line to the existing macro: UpdateMyStyleOnOpen |
| Tags |
| #global style, #styles, #template |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Apply Heading Style When Combining Documents
|
snot369 | Word | 1 | 01-13-2017 11:04 AM |
Writing multiple documents of a certain style.
|
Darkstar_ | Word | 2 | 09-30-2016 12:02 PM |
How can I change the default style set so that it automatically applies to all documents?
|
writty | Word | 3 | 08-16-2015 09:47 AM |
| Make a new Style available in legacy documents | BlueClearSky | Word | 3 | 11-22-2013 03:12 PM |
Change font style and size in multiple documents
|
fitkhan | Word | 1 | 04-27-2011 09:49 PM |