Solved

Changing Selected Text Format in MS Word

Posted on 2014-12-28
3
140 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 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40521390
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
ID: 40523679
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
ID: 40524931
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

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…
I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

832 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