Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Restrict Highlighting?
I've seen this from Bob Phillips:
'-----------------------------*------------------------------*----- Private Sub WorkSheet_SelectionChange(ByVa*l Target As Range) '-----------------------------*------------------------------*----- Cells.FormatConditions.Delete With Target.EntireRow .FormatConditions.Add Type:=xlExpression, Formula1:="TRUE" .FormatConditions(1).Interior.*ColorIndex = 35 End With With Target.EntireColumn .FormatConditions.Delete .FormatConditions.Add Type:=xlExpression, Formula1:="TRUE" .FormatConditions(1).Interior.*ColorIndex = 35 End With With Target .FormatConditions.Delete .FormatConditions.Add Type:=xlExpression, Formula1:="TRUE" .FormatConditions(1).Interior.*ColorIndex = 36 End With End Sub How can I restrict it to specific range - Range("J5:S55") -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cells in Excel will not stop highlighting | Excel Discussion (Misc queries) | |||
How do I restrict only 1 of 2 check boxes be checked? | Excel Discussion (Misc queries) | |||
Help with Highlighting all duplicates in a row | Excel Discussion (Misc queries) | |||
Restrict input if amount is exceeded | Excel Worksheet Functions | |||
restrict opening Excel file residing on a shared drive to one user | Excel Discussion (Misc queries) |