ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete rows if they are empty (https://www.excelbanter.com/excel-programming/280502-delete-rows-if-they-empty.html)

chrismania[_7_]

Delete rows if they are empty
 
Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

......

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


steve

Delete rows if they are empty
 
This was found in Google search:

Sub DeleteBlanks()
'' Deletes all rows that have blanks in Column A .
Columns("A").SpecialCells(xlCellTypeBlanks).Entire Row.Delete
End Sub



--
sb
"chrismania" wrote in message
...
Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

.....

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/




chrismania[_8_]

Delete rows if they are empty
 
Brilliant!!
Thanks it works perfectly!
Cheers Chris



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Dianne

Delete rows if they are empty
 
You could select all your cells then sort your data. All the blank rows
will be sorted to the end.

--
Dianne

In ,
chrismania typed:
Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

.....

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from
http://www.ExcelForum.com/




Tom Ogilvy

Delete rows if they are empty
 
That deletes the rows if column A has an empty cell, whether the row is
empty or not - if that works, great. But it is not what you described.

--
Regards,
Tom Ogilvy


chrismania wrote in message
...
Brilliant!!
Thanks it works perfectly!
Cheers Chris



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 12:09 PM.

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