Hi everyone,
i have this line of code
originally it only deletes the row if cells in column C are empty. However, i want it to delete the row if cells in column d are empty. so i nested the Or [d2] in the If statement. do i have to make changes to the other lines too?Delete blank rows Sub deleteblankrows() Application.ScreenUpdating = True [c:c].AutoFilter Field:=1, Criteria1:="=" [c2:c65536].SpecialCells(xlVisible).EntireRow.Delete If [c1] = "" Or [d2] = "" Then [1:1].Delete ActiveSheet.AutoFilterMode = False Application.ScreenUpdating = True End Sub
Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks