Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default sort button,macro, or ?

Is it possible to program excel, or by any other means, to make a clickable
sort
button out of column headings so that I can quickly sort by date, address,
name, etc
without the multiple steps of highlighting all the cells then clicking data
- sort - and specify the column to sort by? This would be similar to how you
can sort in i tunes.
In i tunes the songs are listed by name, album, songwriter, date added, etc.
It is a breeze sorting your songs by any of the column titles just mentioned
because the column title cell is a button that is clickable and it sorts the
whole list with a click, keeping all information in each row together. If
someone who has worked with or is familiar with i tunes could respond that
would be great since you'd know exactly what I am talking about.

THanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sort button,macro, or ?

If you have Excel 2003, this is called a list and supports the functionality
you describe:

http://office.microsoft.com/en-us/as...129821033.aspx

for a quick overview:
http://office.microsoft.com/en-us/as...982731033.aspx
see the Heading "Excel List"

--
Regards,
Tom Ogilvy


"tiffky" wrote in message
...
Is it possible to program excel, or by any other means, to make a

clickable
sort
button out of column headings so that I can quickly sort by date, address,
name, etc
without the multiple steps of highlighting all the cells then clicking

data
- sort - and specify the column to sort by? This would be similar to how

you
can sort in i tunes.
In i tunes the songs are listed by name, album, songwriter, date added,

etc.
It is a breeze sorting your songs by any of the column titles just

mentioned
because the column title cell is a button that is clickable and it sorts

the
whole list with a click, keeping all information in each row together. If
someone who has worked with or is familiar with i tunes could respond that
would be great since you'd know exactly what I am talking about.

THanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 296
Default sort button,macro, or ?

On Sat, 27 Aug 2005 08:40:28 -0700, tiffky
wrote:

Is it possible to program excel, or by any other means, to make a clickable
sort
button out of column headings so that I can quickly sort by date, address,
name, etc
without the multiple steps of highlighting all the cells then clicking data
- sort - and specify the column to sort by? This would be similar to how you
can sort in i tunes.
In i tunes the songs are listed by name, album, songwriter, date added, etc.
It is a breeze sorting your songs by any of the column titles just mentioned
because the column title cell is a button that is clickable and it sorts the
whole list with a click, keeping all information in each row together. If
someone who has worked with or is familiar with i tunes could respond that
would be great since you'd know exactly what I am talking about.

THanks!


First give a name to your data, excluding the column headings - say
"Database"

Then name your column headings "Date", "Address", "Name"

Then add as many as buttons as you need to sort by. For example add
the first button and in the properties of the button, change the
Caption property to read "Date".

Then in the click event of the button add the following

Private Sub CommandButton1_Click()
Range("database").Sort key1:=Range("date")
End Sub

.....repeat as necessary with other buttons, changing the sort key1
name in the code as appropriate, i.e. "address", "Name" etc..


HTH

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default sort button,macro, or ?

Thanks Tom and Richard!

"Tom Ogilvy" wrote:

If you have Excel 2003, this is called a list and supports the functionality
you describe:

http://office.microsoft.com/en-us/as...129821033.aspx

for a quick overview:
http://office.microsoft.com/en-us/as...982731033.aspx
see the Heading "Excel List"

--
Regards,
Tom Ogilvy


"tiffky" wrote in message
...
Is it possible to program excel, or by any other means, to make a

clickable
sort
button out of column headings so that I can quickly sort by date, address,
name, etc
without the multiple steps of highlighting all the cells then clicking

data
- sort - and specify the column to sort by? This would be similar to how

you
can sort in i tunes.
In i tunes the songs are listed by name, album, songwriter, date added,

etc.
It is a breeze sorting your songs by any of the column titles just

mentioned
because the column title cell is a button that is clickable and it sorts

the
whole list with a click, keeping all information in each row together. If
someone who has worked with or is familiar with i tunes could respond that
would be great since you'd know exactly what I am talking about.

THanks!




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
Sort Button John Gregory Excel Discussion (Misc queries) 2 June 25th 08 08:27 PM
Automated sort button Bwells Excel Discussion (Misc queries) 4 September 20th 07 03:22 PM
Using Macro to sort without clicking on macro button dd Excel Discussion (Misc queries) 3 May 3rd 07 06:00 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
Add Sort button Mike Excel Programming 2 December 17th 03 12:42 AM


All times are GMT +1. The time now is 12:32 AM.

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"