Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
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



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 02:11 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