Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel General
Using a drop-down box to sort data based on seperate columns
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Claus Busch, post: 7419866"] Hi Kevin, Am Fri, 5 Jul 2013 11:39:02 -0700 (PDT) schrieb [email]kevinwaldman9@gmail.com[/email]: your table in A:G, your dropdown from data validation in J1 then in code module of the worksheet: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address <> "$J$1" Then Exit Sub Dim Col As Integer With ActiveSheet Col = WorksheetFunction.Match(Target, .Range("A1:G1"), 0) .UsedRange.Sort key1:=.Cells(1, Col), _ order1:=xlAscending, Header:=xlYes End With End Sub Modify to suit Regards Claus B. [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel General
Using a drop-down box to sort data based on seperate columns
Top