Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default delete blanks

Hello

I have a series of ranges, eg a1:a10
This range contains words in some cells and numbers in
others.
I successfully replace all certain words with "" and sort
the range using A1 as the key.
However, after it's been sorted there are a number of
blank cells at the top.
Since I will be using this range to load a combobox I'd
like to shift the whole lot up and remove the blank spaces
at the top.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default delete blanks

If you are doing this in code, the easiest way would be to do you
replacement of the certain words with "" and then put this line in th
code before doing the sort.

Range("A1:A10").SpecialCells(xlCellTypeBlanks).Ent ireRow.Delete

Replacing the A1:A10 with your range. The line above essientiall
deletes the entire row of anything with a blank cell in the A1:A1
range.



--
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
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Excel Discussion (Misc queries) 2 November 4th 09 08:32 PM
How to find and replace with blanks or actually delete row Patmarie985 Excel Worksheet Functions 1 November 10th 08 06:31 PM
delete blanks - sporadic Alina Excel Discussion (Misc queries) 12 January 19th 07 12:57 AM
excel needs feature to delete blanks when autofilter is used. bobz666 Excel Discussion (Misc queries) 7 February 9th 05 05:33 AM
Delete rows with text and blanks in column A GJones Excel Programming 0 November 19th 03 10:36 PM


All times are GMT +1. The time now is 02:05 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"