hi all, im new to this forum and i have a question regarding a macro i wrote.
my file contains 4 columns and over 50k row, the macro will sort the data according to column D in descending order, and only around 700 of them (data in column d) will contain data that's not a zero.
what i want to do is to delete all the rows whose column D has a value of 0.
here is the code i wrote but it's not working
can someone please help me?PHP Code:
Sub deleteit()
Set myRange = Range("D2", Range("D65536").End(xlUp))
myRange.Cells(0).EntireRow.Delete
End Sub
Bookmarks