Hi Mike,
Try this which highlights the column B and AH cell of activecell row within
("B6:AH37").
The activecell column rows 43 to 74 and 80 to 111 are highlighted also.
(You can probably add the other four ranges you want highlighted by adding
additional lines of code and changing the offset value for each.)
Don't know what to tell you about the conditional format coloring. In my
tests the CF coloring will prevail over the VBA code coloring.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Data As Range
Dim RowData As Range
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim m As Integer
Dim l As Integer
i = 2
j = 34
m = 37
k = ActiveCell.Column()
l = ActiveCell.Row()
Set Data = Range("B6:AH37")
Set RowData = Range("B38:ah300")
Data.Interior.ColorIndex = xlNone
RowData.Interior.ColorIndex = xlNone
If ActiveCell.Row < 6 Or ActiveCell.Row > 37 Or _
ActiveCell.Column < 2 Or ActiveCell.Column > 34 Then
Exit Sub
End If
ActiveCell.Offset(0, -(k - i)).Interior.ColorIndex = 40
ActiveCell.Offset(0, (j - k)).Interior.ColorIndex = 40
ActiveCell.Offset((m - l) + 6, 0). _
Resize(32, 1).Interior.ColorIndex = 40
ActiveCell.Offset((m - l) + 43, 0). _
Resize(32, 1).Interior.ColorIndex = 40
End Sub
HTH
Regards,
Howard