Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-22-2018, 06:35 AM
Charles Kenyon Charles Kenyon is offline Style to be used in all documents (new and old) Windows 10 Style to be used in all documents (new and old) Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,583
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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:
too much to do each document
Seriously?

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
Again, you need to change the name from UpdateMyStyleOnOpen to AutoOpen and change the name of your target style from Body Text to the name you want.

Installing Macros

If you already have an AutoOpen macro, do not rename, but instead add the following line to the existing macro:
UpdateMyStyleOnOpen
Reply With Quote
 

Tags
#global style, #styles, #template



Similar Threads
Thread Thread Starter Forum Replies Last Post
Style to be used in all documents (new and old) Apply Heading Style When Combining Documents snot369 Word 1 01-13-2017 11:04 AM
Style to be used in all documents (new and old) Writing multiple documents of a certain style. Darkstar_ Word 2 09-30-2016 12:02 PM
Style to be used in all documents (new and old) 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
Style to be used in all documents (new and old) Change font style and size in multiple documents fitkhan Word 1 04-27-2011 09:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:23 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