Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Conditional formatting

How do I go about telling cell q7 backgound to be RED when q6 cell is
less that zero
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Conditional formatting

Put the following code with the worksheet.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$Q$6" And Target < 0 Then
Target.Offset(1, 0).Interior.ColorIndex = 3
Else
Target.Offset(1, 0).Interior.ColorIndex = 0
End If
End Sub

  #3   Report Post  
Junior Member
 
Posts: 22
Send a message via Skype™ to Bakar
Default

Quote:
Originally Posted by pcorcele View Post
How do I go about telling cell q7 backgound to be RED when q6 cell is
less that zero
Thanks
Hi
If u r using Office 2007 onwards
use the conditional format
Select conditional format
Select new rule
Select use a formula to determine which cell to format
then in the formula bar just as example
Cell d4 is selected
in the formula bar click on cell c4<0
format fill red color
Thanks may this help

Bakar
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Conditional Formatting to Conventional Formatting [email protected] Excel Programming 0 October 11th 10 05:09 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 04:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"