Solved

How to have custom styles in all Word documents?

Posted on 2014-10-27
7
423 Views
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
Fooky
0
Comment
Question by:f_o_o_k_y
7 Comments
 
LVL 93

Expert Comment

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

Author Comment

by:f_o_o_k_y
ID: 40406320
But how can I do this?
0
 
LVL 93

Expert Comment

by:John Hurst
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.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 76

Expert Comment

by:GrahamSkan
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.
0
 
LVL 11

Author Comment

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

Accepted Solution

by:
EricFletcher earned 500 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.
0
 
LVL 11

Author Closing Comment

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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

773 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