Hi,
How can this code be changed so that only the row of the active cell will be selected?
Thank you,
How can this code be changed so that only the row of the active cell will be selected?
Thank you,
>> Use Code -tags <<
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim LocalSelect As String
With Target
If .Count = 1 Then LocalSelect = .Address & "," & .row & ":" & .row & "," & _ Left(.Address, InStr(2, .Address, "$") - 1) & _ ":" & Left(.Address, InStr(2, .Address, "$") - 1)
End If
End With
On Error Resume Next
Range(LocalSelect).Select
End Sub
Last edited by a moderator: