View Single Post
 
Old 12-01-2015, 08:25 AM
Silvera Silvera is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jul 2013
Posts: 3
Silvera is on a distinguished road
Default Can't Create a Macro that works

I've been making macros for years in Office. I can not even make a simple macro in Word 2013 that my office switched to! I want to change some text color in some of my technical documents for clarity and or emphasis. I have followed (or at least I thought I did) the instructions on how to create a macro in Word. I want to be able to highlight a word or several words and change their color to Green and others to Blue and some to Red, for example. I realize that this would take 3 macros, one for each color.

This is what I do in Excel for changing cell(s) background color
Sub Green()
' Green Cell(s)
' Ctrl+Shift+G
' Macro edited 9/27/2008 by Steven Silvera
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 13434828
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub

I know the above is not appropriate for Word.

Please let me know if you have a macro for Word that works similar
Reply With Quote