B
Bob
I am currently using the following code to change the cell color, I have five
sheets in the workbook (they all have the same color with this code), What
would be the code to be able to set each sheet to have its own color?
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Excel.Range)
Static OldCell As Range
If Not OldCell Is Nothing Then
OldCell.Interior.ColorIndex = xlColorIndexNone
End If
Target.Interior.ColorIndex = 6
Set OldCell = Target
End Sub
Thanks,
Bob
sheets in the workbook (they all have the same color with this code), What
would be the code to be able to set each sheet to have its own color?
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Excel.Range)
Static OldCell As Range
If Not OldCell Is Nothing Then
OldCell.Interior.ColorIndex = xlColorIndexNone
End If
Target.Interior.ColorIndex = 6
Set OldCell = Target
End Sub
Thanks,
Bob