Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Determine if a worksheet is sorted

Is there any way (property or otherwise) in VBA to determine if a worksheet
is already sorted, and if so, what the sort key(s) is/are?

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Determine if a worksheet is sorted

Not that I know of. You could write a macro to loop through all the
columns, and in each column, loop through all the cells and determine by
brute force if that column is sorted either ascending or descending. That
would be an indicator that the data is sorted by that one column, but even
that is not foolproof. HTH Otto
"Fox via OfficeKB.com" <u18899@uwe wrote in message
news:5fc322b87ff94@uwe...
Is there any way (property or otherwise) in VBA to determine if a
worksheet
is already sorted, and if so, what the sort key(s) is/are?

--
Message posted via http://www.officekb.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 check sorted data in an excel worksheet Tahera[_2_] Excel Discussion (Misc queries) 3 May 24th 10 12:26 PM
copying cell contents from one worksheet to another (re-sorted lis Peter Excel Discussion (Misc queries) 2 October 20th 09 06:24 PM
Excel formulas pulling from another worksheet changes when sorted CC Excel Worksheet Functions 1 February 4th 09 06:26 PM
Links not updated when primary worksheet is sorted Susi Farmer Excel Worksheet Functions 4 June 25th 07 09:26 PM
how do i recover a consolidated worksheet that i sorted/subtotale chnbrkr3540 Excel Worksheet Functions 1 December 30th 05 12:04 PM


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

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"