Hi All,
Below macro is working fine and deleting the data till the last row in the excel , could you please help me if the same macro can delete ony the data in a range F6:F4009
Sub testdelcells()
Windows("Chan.xlsm").Activate
Sheets("Test").Select
With ActiveSheet
.AutoFilterMode = False
With Range("F6", Range("F" & Rows.Count).End(xlUp))
.AutoFilter 1, "*DUMMY*"
On Error Resume Next
.Offset(1).SpecialCells(12).EntireRow.delete
End With
.AutoFilterMode = False
End With
End Sub
Thanks
Chand
Below macro is working fine and deleting the data till the last row in the excel , could you please help me if the same macro can delete ony the data in a range F6:F4009
Sub testdelcells()
Windows("Chan.xlsm").Activate
Sheets("Test").Select
With ActiveSheet
.AutoFilterMode = False
With Range("F6", Range("F" & Rows.Count).End(xlUp))
.AutoFilter 1, "*DUMMY*"
On Error Resume Next
.Offset(1).SpecialCells(12).EntireRow.delete
End With
.AutoFilterMode = False
End With
End Sub
Thanks
Chand