Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I am trying to delete the rows on a filtered worksheet with this code:
I am gettin an "Application defined or object-defined error" with the line in red.
Is anyone able to provide a solution to resolve the error?
Rich (BB code):
.Range("A:R").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=ws_vhold.Range("A2:A3")
Set RngList = .Range("A1:R" & .Cells(Rows.Count, "A").End(xlUp).Row).SpecialCells(xlCellTypeVisible)
RngList.Resize(Rows.Count - 1).Offset(1).EntireRow.Delete Shift:=xlUp
I am gettin an "Application defined or object-defined error" with the line in red.
Is anyone able to provide a solution to resolve the error?