deselect row/column from multiple selection
Try this macro:
Sub DropARow()
Set r1 = Selection
n = Application.InputBox(prompt:="enter row# to be de-selected", Type:=1)
Set r2 = Range(n & ":" & n)
Set r3 = Nothing
For Each rr In r1
If Intersect(rr, r2) Is Nothing Then
If r3 Is Nothing Then
Set r3 = rr
Else
Set r3 = Union(r3, rr)
End If
End If
Next
r3.Select
End Sub
--
Gary''s Student - gsnu200836
"Alan C" wrote:
Selecting multiple non-adjacent rows with control click. How do I deselect
one of them.
|