Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Excel Sorting Problem

This one has me stumped.

I have a VB Script that is as follows:
if "~~~" <"~A~" then
msgbox("~~~ comes before ~A~")
else
msgbox("~A~ comes before ~~~")
end if

When I execute the script it returns "~A~ comes before ~~~". This is correct.

But when I put "~~~" and "~A~" in an Excel spreadsheet and sort them, it
lists as follows:
~~~
~A~

I have verified my sorting options in data sort sort options.

Why is VB Script sorting one way and Excel sorting another?
Thanks in advance!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel Sorting Problem

I'm not sure anyone here can definitively answer a "why" question.

Except for "that's the way the developers did it".

You may want to look at: "Default sort orders" in excel's help.


Eric Weller wrote:

This one has me stumped.

I have a VB Script that is as follows:
if "~~~" <"~A~" then
msgbox("~~~ comes before ~A~")
else
msgbox("~A~ comes before ~~~")
end if

When I execute the script it returns "~A~ comes before ~~~". This is correct.

But when I put "~~~" and "~A~" in an Excel spreadsheet and sort them, it
lists as follows:
~~~
~A~

I have verified my sorting options in data sort sort options.

Why is VB Script sorting one way and Excel sorting another?
Thanks in advance!!


--

Dave Peterson
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
Bizarre MS EXCEL problem - files will not open via document ICONs Filk.com Excel Discussion (Misc queries) 2 May 5th 06 06:59 PM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 08:30 PM
Strange Excel Problem..... Sachin Shah Excel Discussion (Misc queries) 0 November 14th 05 10:36 AM
Excel 2003 Slowness problem in Windows XP Elton Seng Yan Thung Excel Discussion (Misc queries) 2 May 18th 05 05:55 AM
Slight problem automating Excel in a service someone Setting up and Configuration of Excel 2 May 13th 05 11:04 PM


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