hamistasty
Board Regular
- Joined
- May 17, 2011
- Messages
- 208
I want the row in column A that is selected to high a light blue colour (But not the cell in A (ie. A & i)). Then when I click off the row I want it to go back to its original colour (white).
help, please?
help, please?
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Changed As Range
Dim WS As Worksheet, I As Long
Set Changed = Intersect(Target, Range("A7:A" & Range("A" & Rows.Count).End(xlUp).Row))
Application.DisplayAlerts = False
Application.ScreenUpdating = False
If Target.Cells.Count > 1 Then Exit Sub
If Not Changed Is Nothing Then
Select Case Right(Target, 3)
Case 1
Case 2
Case 3
End Select
Else
Columns("A:CK").EntireColumn.Hidden = False
End If
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub