Article ID: 213625 - Last Review: October 11, 2006 - Revision: 4.2 XL2000: Sample Macro to Sort List Based on Custom Sort OrderThis article was previously published under Q213625 SUMMARY
In Microsoft Excel, you can create your own custom sort lists and you
can use these lists to specify sort orders when you sort a list of
information. This article describes the procedures for creating a custom
sort list and includes a sample Microsoft Visual Basic for Applications
macro that uses this custom list to sort a range of cells according to the custom sort order.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers 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 requirements.
To create a custom sort list to use later with the sample macro:
134913
(http://support.microsoft.com/kb/134913/EN-US/
)
XL: GetCustomListNum Returns Unexpected List Number
REFERENCESFor more information about custom lists, click Microsoft Excel Help on the
Help menu, type custom sort order in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Article Translations
|
Back to the top
