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

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Excel spreadsheet sort

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Excel spreadsheet sort

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
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 do i sort an excel spreadsheet by column Sandy R Excel Worksheet Functions 1 January 17th 08 08:37 AM
how do I sort tabs on an excel spreadsheet Percy[_2_] Excel Worksheet Functions 5 March 13th 07 05:56 PM
When I sort an excel spreadsheet the data disappears. janell Excel Worksheet Functions 1 August 10th 06 03:59 PM
sort excel spreadsheet with hyperlink jannkatt Excel Discussion (Misc queries) 0 June 13th 06 01:39 PM
How to sort an Excel spreadsheet by more than 3 columns? William,Summit,Oh Excel Worksheet Functions 2 December 28th 05 04:31 PM


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