Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Determining current sort

Is there a way to take a range (say: A7:S10000) and determine what the
current sort order is? I have a userform that allows the user to select which
column they wish to sort by but would like to display on the user form what
the current sort by column is. The columns I allow the user to sort within
the range indicated above is B,C,D,E,G,H,I,P,Q,R

Thanks,

ADK

Using Excel 2000 and beginner at vba


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Determining current sort

It is not clear what you mean by "current sort order"?
The Order1 property (ascending or descending) is not the same as the
Key1 property (the sort column).

If you want to display what column the user selected, then you could
place a "label" on the form with the column address,
or you could place a list box on the form filled with the allowed sort columns,
or you could select the sort column on the worksheet or...

A specific suggestion requires more details from you.
--
Jim Cone
james.coneXXX at comcast.netXXX (remove xxx)
Portland, Oregon USA
("Special Sort" - two dozen additional ways to sort - email and ask for the free trial version)




"ADK"
wrote in message
Is there a way to take a range (say: A7:S10000) and determine what the
current sort order is? I have a userform that allows the user to select which
column they wish to sort by but would like to display on the user form what
the current sort by column is. The columns I allow the user to sort within
the range indicated above is B,C,D,E,G,H,I,P,Q,R

Thanks,
ADK
Using Excel 2000 and beginner at vba


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Determining current sort

nevermind

"Jim Cone" wrote:

It is not clear what you mean by "current sort order"?
The Order1 property (ascending or descending) is not the same as the
Key1 property (the sort column).

If you want to display what column the user selected, then you could
place a "label" on the form with the column address,
or you could place a list box on the form filled with the allowed sort columns,
or you could select the sort column on the worksheet or...

A specific suggestion requires more details from you.
--
Jim Cone
james.coneXXX at comcast.netXXX (remove xxx)
Portland, Oregon USA
("Special Sort" - two dozen additional ways to sort - email and ask for the free trial version)




"ADK"
wrote in message
Is there a way to take a range (say: A7:S10000) and determine what the
current sort order is? I have a userform that allows the user to select which
column they wish to sort by but would like to display on the user form what
the current sort by column is. The columns I allow the user to sort within
the range indicated above is B,C,D,E,G,H,I,P,Q,R

Thanks,
ADK
Using Excel 2000 and beginner at vba



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Determining current sort

You could set the value of a variable at the time the user makes the choice
of column. This could then determine the (text) value of a label that is
placed somewhere on the Worksheet.

BUT, there would be nothing to stop a user from doing a MANUAL sort such
that the sort order no longer corresponded with the last label that was
placed on the sheet ........



--
Time is just the thing that keeps everything from happening all at once


"ADK" wrote:

Is there a way to take a range (say: A7:S10000) and determine what the
current sort order is? I have a userform that allows the user to select which
column they wish to sort by but would like to display on the user form what
the current sort by column is. The columns I allow the user to sort within
the range indicated above is B,C,D,E,G,H,I,P,Q,R

Thanks,

ADK

Using Excel 2000 and beginner at vba


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
Sort Current Worksheet [email protected] Excel Programming 6 April 25th 08 08:34 PM
Sort doesn't recognize current region RobWN Excel Worksheet Functions 2 September 7th 07 10:48 PM
determining resolution of current screen display Graham Whitehead Excel Programming 2 August 7th 06 11:13 AM
Determining current Time Zone In Excel Shaun_C Excel Discussion (Misc queries) 2 April 7th 06 06:29 PM
Determining the current row and col k483 Excel Discussion (Misc queries) 2 November 25th 05 05:50 PM


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