Solved

Changing Selected Text Format in MS Word

Posted on 2014-12-28
3
136 Views
Last Modified: 2014-12-30
I have several Word documents, with lots of quotes. Some of the formatting is inconsistent between documents.

Is it possible to create a Style or Format Painter preset, so that  I can select a paragraph of text,  press a button, and end up with 0.2" indentations on both the left and the right hand sides of the document (non-bold, non-italic)?

And how would I do that?
0
Comment
Question by:normanwillis
3 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
Hi,

you could use this macro

Sub Macro()
    With Selection.ParagraphFormat
        .LeftIndent = InchesToPoints(0.2)
        .RightIndent = InchesToPoints(0.2)
    End With

or you could creat your own style

http://www.homeandlearn.co.uk/word2007_2010/s6p2.html
End Sub

Regards
0
 
LVL 21

Expert Comment

by:EricFletcher
Comment Utility
Modify the existing Quote style, and ensure that the underlying template is updated (once) for each of your documents.

Modify the Quote style:

1. Alt-Ctrl-Shift-S will bring up the Styles dialog. If you don't see the Quote style listed, click the "Options..." button to select all styles and sort by Alphabetical. Click OK, then scroll down to find the Quote style.

2. A down-arrow will appear on the right side when you hover over the style name. Click it and choose "Modify..." to display the Modify Style dialog. This lets you manage how the style works.The Modify Style dialog for the built-in Quote style
3. Use options of the Format pull-down button to set the indents you want (in Paragraph...). You can also change the font, set tabs, apply borders and shading, and more. The "Shortcut key..." option allows you to assign a handy keyboard method to apply the style.Setting a shortcut key for the modified Quote style
Be sure to set the "New documents based on this template" radio button on so your new definitions will become the default for all future documents based on the template. This will be "Normal.dotx" (or Normal.dotm) unless you are using custom templates (and if so, you probably already know all about this topic).

The above will work for the current and any future documents, but not for existing documents. This is because any Word document uses the style definition in effect when the document was first created — in this case, the default non-indented version of the built-in Quote style.

To apply new or modified style definitions to an existing document, you will need to re-attach the template.

1. File > Options > Add-Ins, then choose Manage: Templates to bring up the Templates and Add-ins dialog. The template name will be displayed; typically "Normal".Templates and Add-Ins dialog
2. Turn on the "Automatically update document styles" then click OK. This will update the document's style definitions to match those in the current version of the named template.

Consider repeating step 1 to bring up the dialog again to turn off the "Automatically update" checkbox. If this setting is left on, any future changes made to the template will automatically be applied when the document is opened in the future. This isn't necessarily a problem, but can lead to unexpected changes if a style is altered for a different purpose. This is particularly true if the document may be opened on different computers where the underlying template may not have been updated.
0
 

Author Closing Comment

by:normanwillis
Comment Utility
RGonzo, Thank you for the quick response. I apologize for the delay. I had my hands full. The instructions on creating my own style were very simple to follow. Thank you.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now