Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default 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...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default 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...

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete Blank lines in excel workbook? Hemant Excel Discussion (Misc queries) 2 September 20th 09 01:37 PM
how to delete rows which is blank and which has ======== ( lines) Meeru Excel Discussion (Misc queries) 3 September 7th 09 09:46 AM
Delete Blank Lines Templar Excel Discussion (Misc queries) 2 December 27th 08 05:08 PM
Delete Blank Lines Saxman Excel Discussion (Misc queries) 3 January 9th 07 01:46 AM
Delete Blank Lines Charles Excel Discussion (Misc queries) 3 August 8th 05 05:11 PM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"