Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
Assuming the range is column A, this will do it
Dim cLastRow As Long Dim i As Long cLastRow = Cells(Rows.Count, "A").End(xlUp).Row For i = cLastRow To 1 Step -1 If Cells(i, "A").Value = 0 Then Cells(i, "A").EntireRow.Delete End If Next i -- HTH RP (remove nothere from the email address if mailing direct) "Aloysicus" wrote in message ... How do I set a macro to delete all 0's in a selected range or is there a function to do this? Thanks in advance for your replies. Aloysicus |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I make cell data automatically shift up when deleting | Excel Discussion (Misc queries) | |||
How can I make cell data automatically shift up when deleting... | Excel Worksheet Functions | |||
cell is reinserting a formula in even after deleting it. Why | Excel Discussion (Misc queries) | |||
VBA 'deleting row if a cell in column A is a zero. | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |