Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-10-2018, 09:40 PM
jolivanes jolivanes is offline Is there an easier way? Windows 10 Is there an easier way? Office 2013
Advanced Beginner
 
Join Date: Sep 2011
Posts: 91
jolivanes will become famous soon enough
Default

Code:
Sub Maybe()
Dim c As Range
For Each c In Range("A1:D12")    '<---- Change Range as required
    With c
        Select Case .Interior.Color
            Case Is = vbRed
                c.Value = -1
                    Case Is = vbGreen
                        c.Value = 1
                    Case Is = vbYellow
                c.Value = 0
            Case Else
        End Select
    End With
Next c
End Sub
You might have to find out the RGB colors of the cells and change the code accordingly
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help making invoices easier wbowles Office 0 07-17-2013 10:39 AM
Is there an easier way? Please help me with an easier solution! Inquisitor Word 1 06-26-2011 01:01 AM
Easier highlighting? atarei Word 0 08-27-2010 05:28 PM
Microsoft Word Easier Navigation Question xxlegendxx Word 0 03-22-2009 07:44 PM

Other Forums: Access Forums

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