Deleting Rows

  • Thread starter Thread starter STEVEB
  • Start date Start date
S

STEVEB

Does anyone have any suggestions for a code that will look at column A
and if any cell is blank in column A then delete the entire row?

Any help would be greatly appreciated.

Thanks!
 
on error resume next
activesheet.range("a:a").cells.specialcells(xlcelltypeblanks).entirerow.delete
 
Sub DeleteRows()
On Error Resume Next
columns(1).Specialcells(xlBlanks).EntireRow.Delete
End sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top