Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-05-2015, 11:06 AM
cyraxote cyraxote is offline Font Color Question//.Replacement.Font.Color = 12611584 Windows 7 64bit Font Color Question//.Replacement.Font.Color = 12611584 Office 2013
Novice
 
Join Date: Sep 2015
Location: Essex, MD
Posts: 24
cyraxote is on a distinguished road
Default

Open a document in Word, select some text, and then record a macro. Click the Font Color icon on the Home tab of the Ribbon. Choose a bunch of different colors, and then stop the macro recording. You'll have the color values in the recorded macro, like this:
Code:
Sub Macro20()
'
' Macro20 Macro
'
'
    Selection.Font.Color = -553582593
    Selection.Font.Color = -704577537
    Selection.Font.Color = -553598977
    Selection.Font.Color = -687800423
    Selection.Font.Color = wdColorRed
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Color Question//.Replacement.Font.Color = 12611584 What color is my font? How to tell? pintree3 Word 8 03-26-2015 10:43 AM
Make a certain font face and font color as default in a document. Singh_Edm Word VBA 2 09-13-2014 08:47 PM
changing the font color dbsoccer Project 1 11-01-2013 06:21 AM
Tab Font's color? lostsoul62 Excel 0 02-22-2013 12:21 PM
need help with font color samsongee Word 0 09-07-2006 10:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:36 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