Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim MyGreenRange As Range, MyGreenCell As Range
Dim Position As Byte
Dim TheAddress As String
Position = 0
If ActiveCell.Interior.ColorIndex = 35 Then
Set MyGreenCell = ActiveCell
If MyGreenCell.Offset(-1, 0).Interior.ColorIndex = 35 Then
If MyGreenCell.Offset(-2, 0).Interior.ColorIndex = 35 Then
Position = 3
Else
Position = 2
End If
Else
Position = 1
End If
TheAddress = MyGreenCell.Offset(-1 - Position, 0).Address(0, 0) & "," & _
Range(MyGreenCell.Offset(1 - Position, -2).Address(0, 0), MyGreenCell.Offset(6 - Position, -2)).Address(0, 0)
Range(TheAddress).Select
End If