The information in this article applies to:
SYMPTOMSYou can use a custom sort order to sort data in Microsoft Excel. You can only use a custom sort order as the first sort key. If you use the custom sort order with any key other than the first sort key, it is ignored. RESOLUTION
The custom sort order is meant to be used with the first sort key. To use
a custom sort order for a sort key other than the first sort key, the
sorts must be performed separately. For example, if the custom sort order
is the second sort key, run the sort procedure twice, using one sort key
each time, instead of running the sort procedure once using two sort keys.
First sort the data by using only one sort key (using a sort order that
is built into Microsoft Excel). Then run the sort procedure again, by
using only ne sort key with a custom sort order. The following
example shows how to do this.
Example
MORE INFORMATIONMacro ExampleMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.asp
NOTE: In the second sort procedure, the custom sort order is specified using the value 6. The value 6 is the index number given to the custom list (in the Custom List box under the Options on the Tools menu). To determine which index number has been assigned to your custom list, follow these steps:
REFERENCES
For more information about Using a Custom Sort Order, click the Search
button in Help and type:
Additional query words:
Keywords : xllist |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |