Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Andy,
Here is my version thouge not tested. Sub del_0() Application.ScreenUpdating = False Dim i As Long Dim rng As Range Worksheets("sheet1").Activate Set rng = Worksheets("Sheet1").Cells(1, 1).CurrentRegion For i = 7 To rng.Rows.Count If rng(i, 2).Value = 0 And rng(i, 3).Value = 0 And rng(i, 4).Valu = 0 And rng(i, 5).Value = 0 Then rng(i, 2).EntireRow.Delete i = i - 1 End If Next i End Sub Charle -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot delete a column | Excel Discussion (Misc queries) | |||
Copy column header to next column, delete & delete every nth colum | New Users to Excel | |||
delete cells column. Delete empty cells | Excel Worksheet Functions | |||
How do I delete everything after a / in a column? | Excel Worksheet Functions | |||
Delete row if value in Column X is 0? | Excel Programming |