#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Blank lines

I have a workbook with lots of data (20,000+ rows) and
some of these are blank - the whole line may not be blank
but if there is no value in column a i would like to
delete the whole line - does anyknow know how to do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Blank lines

Hi
have a look at
http://www.cpearson.com/excel/excelM...eleteBlankRows

--
Regards
Frank Kabel
Frankfurt, Germany

David O'brien wrote:
I have a workbook with lots of data (20,000+ rows) and
some of these are blank - the whole line may not be blank
but if there is no value in column a i would like to
delete the whole line - does anyknow know how to do this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Blank lines

Columns(1).SpecialCells(xlBlanks).EntireRow.Delete

--
Regards,
Tom Ogilvy


"David O'brien" wrote in message
...
I have a workbook with lots of data (20,000+ rows) and
some of these are blank - the whole line may not be blank
but if there is no value in column a i would like to
delete the whole line - does anyknow know how to do this?



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
Blank Lines Question Bob[_19_] Excel Discussion (Misc queries) 3 April 10th 12 03:39 AM
Char(10) and blank lines Wanna Learn Excel Discussion (Misc queries) 6 July 9th 08 02:58 PM
Macro not recognizing blank lines as blank pm Excel Discussion (Misc queries) 9 May 22nd 07 04:16 PM
Delete Blank Lines Charles Excel Discussion (Misc queries) 3 August 8th 05 05:11 PM
how to automatically insert blank lines in between non-blank lines No Name Excel Programming 2 November 17th 03 03:40 PM


All times are GMT +1. The time now is 05:49 AM.

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"