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

In that case, use this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 14 And Target.Value = 1 Then
Range(Target.Offset(0, -13), Target.Offset(0, -9)).Interior.ColorIndex = 6
End If
End Sub
--
Best wishes,

Jim


"JOM" wrote:

I tried to modify the code so that it accomodates the coloumn N2-N10 and the
rows that need to change are from 2-10 column B-f each conciding with its own
value in N so if N7 is 1 then the row 7 will have the highligt. but its not
working..

"Jim Jackson" wrote:

You can make it run with this:
After loading this in the sheet's code window, type a number in N2.

This runs automatically whenever a cell's value is changed.

Private Sub Worksheet_Change(ByVal Target As Range)
Highlight
end sub
--
Best wishes,

Jim


"JOM" wrote:

Ok I put that in the VB editor, what am I supposed to do next because I don't
see it highlighting...

"Jim Jackson" wrote:

Sub Highlight()
If Range("N2") = 1 Then
Range("B2:F2).Interior.ColorIndex = 6 ' or the color of your choice
End Sub

ColorIndex ranges from 1 to 56
--
Best wishes,

Jim


"JOM" wrote:

I would like to highlight row b2 to F2 if N2 is equal 1 how do I do that

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
Need Conditional Formating help. JonWardellBuilders Excel Worksheet Functions 2 December 8th 08 07:50 PM
Conditional Formating zooming Excel Discussion (Misc queries) 2 March 27th 06 04:58 PM
Conditional Formating Dan Excel Worksheet Functions 0 March 26th 06 11:45 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional Formating GMet Excel Programming 1 September 13th 04 05:13 PM


All times are GMT +1. The time now is 02:14 AM.

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

About Us

"It's about Microsoft Excel"