Jalal Kasmani
Board Regular
- Joined
- Feb 14, 2015
- Messages
- 52
- Office Version
- 365
- Platform
- Windows
After filter, i want the cursor on the second row, then select that row and dragdown. can anyone help ?
Sub zz()
Dim c As Long, r As Long
c = Cells(1, Columns.Count).End(xlToLeft).Column
r = Cells(Rows.Count, c).End(xlUp).Row
With ActiveSheet.Range("a1", Cells(r, c))
.AutoFilter field:=4, Criteria1:="10"
On Error Resume Next
'.Offset(1, 0).Resize(.Rows.Count - 1).SpecialCells(xlCellTypeVisible).ClearContents 'to clear teh cells
'.Offset(1, 0).Resize(.Rows.Count - 1).SpecialCells(xlCellTypeVisible).EntireRow.Delete 'to delete entire row
On Error GoTo 0
.AutoFilter
End With