PC Review


Reply
Thread Tools Rate Thread

Is there a way to have a excel automatically alphabetize a sheet?

 
 
=?Utf-8?B?TXppbnNzZXI=?=
Guest
Posts: n/a
 
      18th Sep 2006
My boss would like to create a spreadsheet that will automatically
alphabetize itself. Is this possible? He wants to be able to insert data
and instead of sorting it himself, if the program would do it. Please let me
know if there is a way!
Thank you!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      18th Sep 2006
Here is an example. Enter this small macro into your worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:A")) Is Nothing Then
Else
Application.EnableEvents = False
Columns("A:A").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Application.EnableEvents = True
End If
End Sub

When data is entered in column A, the column will automatically re-sort
itself. You can modify the code to sort more than one column.

REMEMBER: Worksheet code.
--
Gary's Student


"Mzinsser" wrote:

> My boss would like to create a spreadsheet that will automatically
> alphabetize itself. Is this possible? He wants to be able to insert data
> and instead of sorting it himself, if the program would do it. Please let me
> know if there is a way!
> Thank you!
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      18th Sep 2006
I don't like things too automatic. If I make a mistake and the data sorts, it
might be difficult to find/correct the error.

If you're running xl2003, you could apply data|filter|autofilter to the range
and use the dropdown to sort by one of those fields.

I like this technique from Debra Dalgleish's site:
http://contextures.com/xlSort02.html

It puts rectangles over the headers and then you can click on that rectangle to
sort your data by that column.

Mzinsser wrote:
>
> My boss would like to create a spreadsheet that will automatically
> alphabetize itself. Is this possible? He wants to be able to insert data
> and instead of sorting it himself, if the program would do it. Please let me
> know if there is a way!
> Thank you!


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Alphabetize automatically ? Curious Microsoft Word Document Management 0 27th Nov 2007 05:15 PM
Automatically alphabetize excel worksheet =?Utf-8?B?VGFuYU1hcnk=?= Microsoft Excel Worksheet Functions 4 25th Sep 2007 09:14 PM
Re: Can I have an Excel spread sheet alphabetize by default? krcowen@aol.com Microsoft Excel Worksheet Functions 0 20th Dec 2006 09:51 PM
Can I alphabetize by sheet name in an excel workbook? =?Utf-8?B?c3Vucm9zZW1vbQ==?= Microsoft Excel Misc 1 21st Feb 2005 08:15 PM
how do I alphabetize items automatically in excel =?Utf-8?B?aW5zcGVjdG9yIHRpbW0=?= Microsoft Excel Worksheet Functions 1 18th Dec 2004 03:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 PM.