LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default alphabetizing automatically from a list

This is just a sample. Put the following code in worksheet code for the
sheet with the list:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("E1")) Is Nothing Then
Exit Sub
End If

Application.EnableEvents = False
Columns("E:E").Sort Key1:=Range("E1")
Range("E1").Insert Shift:=xlDown
Range("E1").Select
Application.EnableEvents = True
End Sub

Put the list from E2 on down. Leave E1 blank until you are ready.

When you enter something in E1, the list will automatically re-sort itself
and leave a space in E1 for more entries.

If you need help with VBA, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm
and
http://www.cpearson.com/excel/events.htm
--
Gary's Student


"mbawct" wrote:

I have a list of names that i want to be able to add to and keep at its
current location, but I need it to alphabetize the list automatically. I
certainly know how to do this "manually," but I have multiple lists that need
to be reordered.

To make matters worse, I really actually need the alphabetized list to be in
a new sheet, outside the original workbook.

Thank you for your help!

 
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
Advanced filter and a list Epinn New Users to Excel 14 September 20th 06 02:11 AM
Drop Down List Not Updating Automatically RBan Excel Discussion (Misc queries) 1 June 23rd 06 07:27 PM
How to Change List Based on Value Chosen in Another List Edwin Kelly Excel Worksheet Functions 4 March 2nd 06 07:31 PM
How can I fill data in a list automatically? KFuda Excel Discussion (Misc queries) 1 November 4th 05 06:36 PM
Automatically insert list entry oliverj Excel Discussion (Misc queries) 1 July 30th 05 12:29 AM


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