Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet which I want to sort the columns are
1st A - Week Number (Number) 2nd B- Operator name (Text) 3rd C - Days of the week Mon through Sunday best way using code ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
record a macro while you do it.
"Nev" wrote in message ... I have a spreadsheet which I want to sort the columns are 1st A - Week Number (Number) 2nd B- Operator name (Text) 3rd C - Days of the week Mon through Sunday best way using code ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nev
record a macro while you carry out the sort manually. That should give you the basis of the code you need. Sub Macro1() ' ' Macro1 Macro ' Macro recorded 31/10/2003 by ' ' Selection.Sort Key1:=Range("A2"), _ Order1:=xlAscending, _ Key2:=Range("B2"), _ Order2:=xlAscending, _ Key3:=Range("C2"), _ Order3:=xlAscending, _ Header:=xlGuess, _ OrderCustom:=1, _ MatchCase:=False, _ Orientation:=xlTopToBottom End Sub Regards Trevor "Nev" wrote in message ... I have a spreadsheet which I want to sort the columns are 1st A - Week Number (Number) 2nd B- Operator name (Text) 3rd C - Days of the week Mon through Sunday best way using code ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i sort an excel spreadsheet by column | Excel Worksheet Functions | |||
how do I sort tabs on an excel spreadsheet | Excel Worksheet Functions | |||
When I sort an excel spreadsheet the data disappears. | Excel Worksheet Functions | |||
sort excel spreadsheet with hyperlink | Excel Discussion (Misc queries) | |||
How to sort an Excel spreadsheet by more than 3 columns? | Excel Worksheet Functions |