Hello Friends,
I am using the below VBA code..
I want whole thick red color border on the active cell.
Like if cell F2 is the active cell then border on cell F2 only and remove borders if any from non active cell within the range
Regards,
Humayun
I am using the below VBA code..
I want whole thick red color border on the active cell.
Like if cell F2 is the active cell then border on cell F2 only and remove borders if any from non active cell within the range
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("C2:F2")) Is Nothing Then
Range("H2").Value = ActiveCell.Value
End If
If Not Intersect(Target, Range("C3:F4")) Is Nothing Then
Range("H3").Value = ActiveCell.Value
End If
End Sub
Regards,
Humayun