I have a macro that AutoFilters a range & filters for criteria successfully. I am looking to copy-visible this resulting range, and paste it elsewhere, but am having trouble selecting this filtered-range. Row 1 of my data is a header.
Here is the code snippet, applied to the filtered data:
Set mainsheet = Workbooks("MyFile.xlsm").Sheets("Main")
Range("A1").Select
With mainsheet
.Range(.Cells(Selection.Row + 1, 1), .Cells(Selection.Row + 1, 47)).Select
End With
I figured this would move the cursor down to the next visible cell, but it actually moves down to cell A2 (which is filtered out).
I need to select the first row of data not including my header, so I can xlDown and copy, but I can't figure out how to increment downward. Any tips?
Sheet1.Range("A2:W235").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheet3.Range("A1")- Darren Bartrup-Cook