#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA sort

Greetings, all.

As you can see by the VBA below, I'm deleting empty cells out of named ranges.
After the VBA for "SortedEE" executes, the cells in "SortedEQ" get moved up
into the range for "SortedEE" and some of my data gets deleted. I thought
because I was using a reference to a name that I could have both name ranges
be sorted and have the empty cells deleted. Is my sorting the problem? I
figured the source of my problem might be VBA below.

VBA Example: Range("SortedEE").SpecialCells(xlCellTypeBlanks).E ntireRow.
Delete
Range("SortedEQ").SpecialCells(xlCellTypeBlanks).
EntireRow.Delete

Any help would be greatly appreciated.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200908/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA sort

Mark_F wrote:
Greetings, all.

As you can see by the VBA below, I'm deleting empty cells out of named ranges.
After the VBA for "SortedEE" executes, the cells in "SortedEQ" get moved up
into the range for "SortedEE" and some of my data gets deleted. I thought
because I was using a reference to a name that I could have both name ranges
be sorted and have the empty cells deleted. Is my sorting the problem? I
figured the source of my problem might be VBA below.

VBA Example: Range("SortedEE").SpecialCells(xlCellTypeBlanks).E ntireRow.
Delete
Range("SortedEQ").SpecialCells(xlCellTypeBlanks).
EntireRow.Delete

Any help would be greatly appreciated.


PLEASE DISREGARD POST. PROBLEM HAS BEEN FIGURED OUT.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200908/1

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
Updating workbook with an alpha sort sheet and a numeric sort shee cjlatta Excel Discussion (Misc queries) 2 January 28th 09 12:00 AM
sort function for dates does not sort properly in Office 2007 Exc. Rosalie Excel Worksheet Functions 1 November 22nd 07 10:25 PM
Pls. reply Sort Data and copy to next coulmn when sort order chang shital shah Excel Programming 1 August 19th 05 02:51 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
sort (on part of) string - originally posted under Tricky Sort Tom Ogilvy Excel Programming 0 August 6th 04 02:42 AM


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