Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Combobox - Sorting Data

Sub SOR()
I have a combobox - when I choose an option it arranges data according to
Client which is currently in column G, however I need to sort data according
to "Client" irrespective of the Column, how do I tinker with the code below
to do this - Thanks


' SOR Macro
' Macro recorded 20/02/2005 by _ _
'

'
Range("C9:AS69").Select
Selection.Sort Key1:=Range("G9"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combobox - Sorting Data

Key1:=Range("G9"),

specifies to sort on column G. If you want to sort on some other column,
change Key:= to point to another column in the data.

--
Regards,
Tom Ogilvy

"teresa" wrote in message
...
Sub SOR()
I have a combobox - when I choose an option it arranges data according to
Client which is currently in column G, however I need to sort data

according
to "Client" irrespective of the Column, how do I tinker with the code

below
to do this - Thanks


' SOR Macro
' Macro recorded 20/02/2005 by _ _
'

'
Range("C9:AS69").Select
Selection.Sort Key1:=Range("G9"), Order1:=xlAscending,

Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub



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
ComboBox data SSHO_99 Excel Worksheet Functions 2 March 15th 05 01:35 PM
Sorting dates in a combobox Mark Rosenkrantz[_3_] Excel Programming 4 July 2nd 04 09:09 AM
Sorting Items in a ComboBox? NooK[_3_] Excel Programming 2 June 18th 04 07:25 AM
Update Combobox with New Data keepitcool Excel Programming 0 June 3rd 04 08:15 AM
Sorting in a ComboBox keepitcool Excel Programming 1 August 26th 03 12:06 AM


All times are GMT +1. The time now is 03:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"