Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2014, 06:26 AM
regwitt regwitt is offline RGB color codes? Windows 7 32bit RGB color codes? Office 2010 32bit
Novice
RGB color codes?
 
Join Date: Sep 2014
Location: Columbus, IN
Posts: 11
regwitt is on a distinguished road
Default RGB color codes?

I am trying to embed an IF statement within another IF statement with a condition that would change the color of the cell. I'm aware of macros and really don't think it should be that complicated.



=IF("",RGB(255,0,0),"") WHY NOT!!!!

Is this possible? If so please help.

Thanks in advance.....
Reply With Quote
  #2  
Old 12-17-2014, 11:30 PM
excelledsoftware excelledsoftware is offline RGB color codes? Windows 7 64bit RGB color codes? Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

So are you looking to do this in VBA? if so you need to put some more code in so that your program know what objects to look at. Start with this

Code:
If Range("A1").Interior.ColorIndex = 4 Then
  If Range("A1").value <> "" Then
    msgbox "This cell equals nothing and is green."
  End If
End If
Reply With Quote
  #3  
Old 01-06-2015, 04:51 PM
CoolBlue's Avatar
CoolBlue CoolBlue is offline RGB color codes? Windows 7 64bit RGB color codes? Office 2013
Advanced Beginner
 
Join Date: Jun 2014
Location: Australia
Posts: 40
CoolBlue is on a distinguished road
Default RGB color codes?

I can't tell much from your question but if you want to change the colour of a cell using a formula then conditional formatting is what you need.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
RGB color codes? Color codes as background Anderso Excel 1 12-19-2014 11:53 PM
Converting color codes in VBA Ulodesk Word VBA 7 11-24-2014 04:15 AM
Is it possible to merge the two VBA codes into just one sam2149 Excel Programming 0 02-26-2014 05:28 AM
RGB color codes? I created a custom XML color scheme. How do I add that to the Built-in Color? Cassik PowerPoint 5 11-04-2013 02:08 PM
RGB color codes? Codes for Word Textbox Font Color? tinfanide Word VBA 7 10-23-2012 03:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:29 AM.


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