Selecting Range After AutoFilter
Try:
With .AutoFilter.Range
.Offset(0, 1).Resize(.Rows.Count ,3).SpecialCells(xlVisible).Select
End With
or
Range("B:D").Select
This will select only the visible cells when in the filter mode.
"Randal W. Hozeski" wrote in message
news:cItHb.498285$275.1405392@attbi_s53...
I have code that runs an AutoFilter, on a six column
dataset in column A thru F. I use the following code
to try select a part of the result.
With .AutoFilter.Range
.Offset(0, 1).Resize(.Rows.Count - 0). _
SpecialCells(xlVisible).Select
End With
This will start the select in Column B but then runs it
out thru column G (a blank)
Question: Is there a way to just select column B,C, & D?
Thanks. -Randy-
.
|