Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2014, 08:54 PM
steelpastor steelpastor is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office 2010 64bit
Novice
Help a new guy?  Macro?
 
Join Date: Jun 2014
Posts: 4
steelpastor is on a distinguished road
Default Help a new guy? Macro?


Someone suggested this would be a "macro"? I would like to use the same commands across all MS Word 2010 Documents.

I use some adjustments in the written text in certain documents for public speaking. For instance... if I want to have a section of text with multiple font adjustments, I need to make each of the individually. (Example: Instead on having plain text, I want a portion of text to be bold and italic and highlighted in yellow). Currently, this takes multiple steps... highlight text with mouse, control B, control U and then select yellow highlight. If I wish to have another portion of text with an additional group of font changes... (Example: bold, italic, underlined and highlighted green), it takes me five steps to accomplish this. Is there a method to achieve these two examples by simply highlighting with mouse and a simple... control Q (or whatever)?

Thank you for your help.
Reply With Quote
  #2  
Old 06-22-2014, 01:34 AM
fumei fumei is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Sure. What you seem to asking about are Styles. You can set up any number of characteristics as a named Style, assign a keyboard shortcut to it and away you go.

So say you make a Character Style named MyGreenUnder (but you can name it anything like), with it being bold, underlined, italic and green. Assign Control-Q to it. Now anything you select can be made bold, underlined, italics...and green simply by pressing Control-Q.
Reply With Quote
  #3  
Old 06-22-2014, 05:06 AM
Charles Kenyon Charles Kenyon is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
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

Styles are definitely the Word tool for this.
Understanding Styles in Microsoft Word
Tips for Understanding Styles in Word by Shauna Kelly

You would probably benefit from going through all the pages of the following tutorial. Page 3 is about using Styles, but this tutorial contains information every Word user should have:
Basic concepts of Microsoft Word: An introduction by Shauna Kelly
Reply With Quote
  #4  
Old 06-22-2014, 02:17 PM
steelpastor steelpastor is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office 2010 64bit
Novice
Help a new guy?  Macro?
 
Join Date: Jun 2014
Posts: 4
steelpastor is on a distinguished road
Default

.

THANK YOU! I have figured out how to do the bold/italic/underline and the bold/italic... however I cannot seem to figure out how to include highlighting in as well.

Thanks again.

.
Reply With Quote
  #5  
Old 06-23-2014, 07:30 PM
Charles Kenyon Charles Kenyon is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
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

Highlighting cannot be a part of a style. However, background text shading can be. See Understanding Styles in Microsoft Word - Troubleshooting.
Attached Images
File Type: png 00 deleteme.png (4.7 KB, 12 views)

Last edited by Charles Kenyon; 06-24-2014 at 05:28 AM. Reason: add screenshot and link
Reply With Quote
  #6  
Old 06-23-2014, 08:43 PM
steelpastor steelpastor is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office 2010 64bit
Novice
Help a new guy?  Macro?
 
Join Date: Jun 2014
Posts: 4
steelpastor is on a distinguished road
Default

.

Thank you, Charles.


.
Reply With Quote
  #7  
Old 06-23-2014, 11:05 PM
fumei fumei is offline Help a new guy?  Macro? Windows 7 64bit Help a new guy?  Macro? Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

It is unfortunate that you can not put highlighting as a character style. For that you DO have to use a macro. However to do so is easy, and you can still assign a keyboard shortcut (say Ctrl-Q) to it.

Code:
 
Sub MyLotsOfFormat()
With Selection
    With .Font
        .Underline = wdUnderlineSingle
        .Bold = True
        .Italic = True
    End With
    .Range.HighlightColorIndex = wdBrightGreen
End With
End Sub
You can of course change the parameters like the underline characteristic and the highlight colour.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Needed to bold specific lines and Macro to turn into CSV anewteacher Word VBA 1 05-28-2014 03:59 PM
custom icon, undo/redo for macro, permanent macro Rapier Excel 0 08-05-2013 06:30 AM
How do I assign a macro to a button when the macro is in my personal workbook? foolios Excel Programming 2 07-27-2011 02:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:57 PM.


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