Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default simple help needed please

i often get data with lots of blank rows between the data at random
intervals which i'd like to eliminate.

Does anyone know a good macro for deleting rows that can handle
"overlapping selections"- ie where the are groups of rows of data, then
rows of empty cells, then data rows, then empty for etc etc etc!

Thanks very much for any help


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default simple help needed please

ian

Select a column and EditGo ToSpecialBlanksOK

With blank rows selected EditDeleteEntire Row.

Turn on the Macro Recorder while you're doing this.

Gord Dibben Excel MVP

On Wed, 17 Dec 2003 15:11:35 -0600, ian123
wrote:

i often get data with lots of blank rows between the data at random
intervals which i'd like to eliminate.

Does anyone know a good macro for deleting rows that can handle
"overlapping selections"- ie where the are groups of rows of data, then
rows of empty cells, then data rows, then empty for etc etc etc!

Thanks very much for any help


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default simple help needed please

You could just sort the data then the empty rows will be at the bottom!

--
Regards,
Rocky McKinley


"ian123" wrote in message
...
i often get data with lots of blank rows between the data at random
intervals which i'd like to eliminate.

Does anyone know a good macro for deleting rows that can handle
"overlapping selections"- ie where the are groups of rows of data, then
rows of empty cells, then data rows, then empty for etc etc etc!

Thanks very much for any help


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default simple help needed please

columns(1).SpecialCells(xlBlanks).entireRow.Delete

--
Regards,
Tom Ogilvy

ian123 wrote in message
...
i often get data with lots of blank rows between the data at random
intervals which i'd like to eliminate.

Does anyone know a good macro for deleting rows that can handle
"overlapping selections"- ie where the are groups of rows of data, then
rows of empty cells, then data rows, then empty for etc etc etc!

Thanks very much for any help


---
Message posted from http://www.ExcelForum.com/



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
simple Macro needed ipbr21054 New Users to Excel 1 November 18th 10 07:57 PM
simple loop needed please Alan Excel Discussion (Misc queries) 1 May 5th 10 06:33 PM
Simple formula needed shane Excel Discussion (Misc queries) 5 October 18th 07 11:27 PM
Help needed in a simple task vmantrana Excel Discussion (Misc queries) 3 April 18th 06 12:57 AM
A simple 'If...Then...' code needed? Big Chris[_7_] Excel Programming 2 October 8th 03 04:42 PM


All times are GMT +1. The time now is 07:00 AM.

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

About Us

"It's about Microsoft Excel"