ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting Blank Cells (https://www.excelbanter.com/excel-programming/363687-selecting-blank-cells.html)

bodhisatvaofboogie

Selecting Blank Cells
 
What is a formula I can plug into a macro to select all blank rows in column
A, then deleting the entire row? Thanks!!!



Norman Jones

Selecting Blank Cells
 
Try:

On Error Resume Next
Columns("A").SpecialCells(xlBlanks).EntireRow.Dele te
On Error GoTo 0

---
Regards,
Norman


"bodhisatvaofboogie" wrote in
message ...
What is a formula I can plug into a macro to select all blank rows in
column
A, then deleting the entire row? Thanks!!!





Ardus Petus

Selecting Blank Cells
 
columns("A").specialcells(xlblanks).entirerow.dele te

HTH
--
AP

"bodhisatvaofboogie" a écrit
dans le message de news:
...
What is a formula I can plug into a macro to select all blank rows in
column
A, then deleting the entire row? Thanks!!!






All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com