ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel 2007 Help

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-19-2008, 07:50 AM
jamesmorrisq88 jamesmorrisq88 is offline
Registered User
 
Join Date: 19 Aug 2008
Location: Kuwait
Posts: 6
jamesmorrisq88 is on a distinguished road
Exclamation Format complete line off one cell

I need to be able to color the complete line due to the value of one cell.

For example:

If cell A1 is greater than or equal to 4 then I need A1-G1 to be highlighted in RED.

Is this possible?

Thanks for any help.
Reply With Quote
  #2  
Old 08-19-2008, 08:38 AM
sweep's Avatar
sweep sweep is offline
Valued Forum Contributor
 
Join Date: 03 Apr 2007
Location: England - Starting the invasion
Posts: 853
sweep is on a distinguished road
Hi,

Take a look at this link

http://www.wikihow.com/Apply-Conditi...tting-in-Excel
__________________
I hope that helps!

Dave

have you tried google?
Reply With Quote
  #3  
Old 08-19-2008, 09:22 AM
jamesmorrisq88 jamesmorrisq88 is offline
Registered User
 
Join Date: 19 Aug 2008
Location: Kuwait
Posts: 6
jamesmorrisq88 is on a distinguished road
Thanks for your help. I got it to work. Do you know if it is possible to do the same thing in Macros?
Reply With Quote
  #4  
Old 08-19-2008, 09:28 AM
sweep's Avatar
sweep sweep is offline
Valued Forum Contributor
 
Join Date: 03 Apr 2007
Location: England - Starting the invasion
Posts: 853
sweep is on a distinguished road
Yes

Code:
Sub Macro1()
If Range("A1").Value > 4 Then Range("A1:G1").Interior.ColorIndex = 3 Else Range("A1:G1").Interior.ColorIndex = 0
End Sub
__________________
I hope that helps!

Dave

have you tried google?
Reply With Quote
  #5  
Old 08-19-2008, 09:37 AM
jamesmorrisq88 jamesmorrisq88 is offline
Registered User
 
Join Date: 19 Aug 2008
Location: Kuwait
Posts: 6
jamesmorrisq88 is on a distinguished road
Much appreciated.
Reply With Quote
Reply

Bookmarks

New topics in Excel 2007 Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting one column to text file Brelin Excel Programming 11 08-21-2008 01:29 AM
Preserve Cell Format maacmaac Excel Worksheet Functions 2 07-25-2008 10:41 AM
textbox to Cell date format issues Panic Excel Programming 1 04-18-2008 04:06 AM
New line of text within a cell jjconomy Excel General 0 02-04-2008 08:16 AM
Conditional Format a cell based on a range of numbers fablhof Excel Miscellaneous 2 04-28-2007 12:39 AM


All times are GMT -4. The time now is 05:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0