How to have custom styles in all Word documents?

Posted on 2014-10-27
Medium Priority
Last Modified: 2014-11-03
Hello Experts,
I'm developing custom ribbon for Word 2013.
I have prepared many styles which I'm using with my ribbon.
I know that if I create document based on this template (with styles) I have all styles available.
But I need to have this custom styles in all Word documents even if the document was created by different person based on different document template.

How can I achieve this goal?

Best Regards
Question by:f_o_o_k_y
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 97

Expert Comment

by:Experienced Member
ID: 40406296
You have to re-apply your template to an incoming document with a different style set.
LVL 11

Author Comment

ID: 40406320
But how can I do this?
LVL 97

Expert Comment

by:Experienced Member
ID: 40406322
Make sure your Style Set is included in Styles in the Word Ribbon. Then open the document in question and change the style to the one you want. You may have to select All to do this.
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

LVL 76

Expert Comment

ID: 40406328
You would either have to copy the styles into each template or attach the updated template to each document.

Also make sure that the 'Automatically update document styles' checkbox in the Templates and Add-ins dialogue is ticked for each template.
LVL 11

Author Comment

ID: 40406344
GrahamSkam do you know how I can copy my styles to document while opening it?
I'm using VSTO and c#.
LVL 21

Accepted Solution

Eric Fletcher earned 2000 total points
ID: 40406363
You need to attach your template to a document to have access to the styles. In Word 2013, File > Options and choose Add-Ins. From the Manage drop-down, choose Templates and click Go to display the Templates and Add-Ins dialog. The name of the current template will be displayed (typically Normal). To apply your template instead, click Attach to be able to navigate to and choose your template.

If you want to have your template's style formatting applied to all identically-named styles in the document, turn on the "Automatically Update Document Styles" checkbox.

For earlier versions of Word, the Templates and Add-Ins dialog can be harder to find. To access it in Word 2010 (and 2007?), you can either add it to the Quick Access Toolbar (QAT), or use Word Options >Customize Ribbon to turn on visibility of the normally-hidden Developer Main Tab. The dialog is available via the Document Template button in the Templates section of the Developer ribbon.
LVL 11

Author Closing Comment

ID: 40420275
I recorded macro with this steps and implemented it with c#.
Thank you for your help

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question