Hi,
I have some code which highlights an entire row depending upon which row is selected:
This works nicely but has two problems.Code:Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Cells.Interior.ColorIndex = -4142 With Target.EntireRow.Interior .ColorIndex = 6 End With End Sub
1) It removes all current cell formatting - which i would like to keep
2) It highlights the entire row and not a range of cells (ie. A7:K1000)
Could anyone help me modify this?
Thanks
Last edited by Barking_Mad; 03-10-2010 at 11:39 AM.
I've found that conditionally formatting the column headers with "TEXT CONTAINING" will override the removal of the original colour and stop the cell changing colour when selected. Bit of a pain and not ideal as I have about 12 headers.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks