ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete Blank Lines (https://www.excelbanter.com/excel-programming/368991-delete-blank-lines.html)

Gordon[_2_]

Delete Blank Lines
 
Hi...

I used to know how to do this. Can anyone remind me how to delete blank
lines in spreadsheet and have all lines with data to shuffle together?

Thanks in advance...

Gordon...

Mike

Delete Blank Lines
 
I believe you are trying to do this:
Sub RemoveBlankLines()
LR = Range("A65536").End(xlUp).row
For myRow = LR to 1 Step - 1
if isEmpty(Range("A" & myRow)) then
Rows(myRow).Delete
End if
next myRow


"Gordon" wrote:

Hi...

I used to know how to do this. Can anyone remind me how to delete blank
lines in spreadsheet and have all lines with data to shuffle together?

Thanks in advance...

Gordon...



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

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