LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default End and Sort methods adding blanks

I have been working on some macro code that uses the End(xlDown) method. I
find that occasionally this method locates a cell two rows below the actual
end of the data. I call the End method on a range containing just the cell
at the top of the column. The blank cells that it indicates are filled are
actually empty; they don't contain spaces or anything like that. I've added
fudge code to back up if End(xlDown) skidded past the real stop point, but
I'm wondering why this happens.

I also find that when I use the Sort method from a range containing an
entire column and using ascending order, it sometimes puts 2 or 4 blank cells
at the top of the resulting column. Again, these are empty cells, not cells
containing spaces.

In both these cases, the cells in the column contain text information
consisting of several alphanumerics, a hyphen, and several digits. Example:
"sys-1163".
--
In theory, there is no difference between theory and practice; in practice,
there is.
 
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
Removing blanks / sorting - common methods not applicable Dark_Templar Excel Discussion (Misc queries) 1 May 26th 06 02:54 AM
How do I sort a list that contains blanks that I want to keep? SHexceluser Excel Discussion (Misc queries) 5 October 14th 05 10:27 PM
Sort a row of strings, some containing blanks KobusD Excel Programming 8 September 2nd 05 08:39 PM
Adding Chart - Methods Fail [email protected] Excel Programming 1 May 18th 05 09:46 AM
3 possible methods for adding value to a combobox Todd Huttenstine[_3_] Excel Programming 3 January 25th 04 01:16 AM


All times are GMT +1. The time now is 12:29 PM.

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"