Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You misspelled "celss" when assigning finalrow. :)
It would probably be faster to filter the range for rows where column(H)=1 then delete the results. Sub FilterDelete() Dim FilterRange As Range finalrow = Cells(Rows.Count, 1).End(xlUp).Row Set FilterRange = Range("A1:H" & finalrow) FilterRange.AutoFilter Field:=8, Criteria1:=1 FilterRange.SpecialCells(xlCellTypeVisible).Entire Row.Delete End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete & Merge Columns,Delete Rows with filter, etc | Excel Programming | |||
Delete Rows if any cell in Column H is blank but do not Delete Fir | Excel Programming | |||
Copy pasting Rows, but need to Delete any Shapes/Pictures that are within copied rows | Excel Programming | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |