sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
I'm using the below code to delete blank rows in a range, but it is producing an error if there are no blank rows to delete. I already have an error routine built into the macro which sends me an email on an error, so I don't think I can use On Error GoTo 0 aswell can I?
Essentially I would like to deal with the above scenario by just ignoring it, if someone can suggest a solution?
Essentially I would like to deal with the above scenario by just ignoring it, if someone can suggest a solution?
Code:
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete