Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How do I format alphabetically in a column?

I have a list of a hundred names last name first, etc. I have entered in a
spread sheet and I would like to format the first column to alphabatize when
a new entry is made, Possible??
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I format alphabetically in a column?

Try this worksheet event macro. It will automatically alphabetize column A
whenever an entry is entered or changed:

Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("A:A")
If Intersect(r, Target) Is Nothing Then Exit Sub
Application.EnableEvents = False
Columns("A:A").Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess
Application.EnableEvents = True
End Sub
--
Gary''s Student - gsnu200792


"Brian k" wrote:

I have a list of a hundred names last name first, etc. I have entered in a
spread sheet and I would like to format the first column to alphabatize when
a new entry is made, Possible??
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
How do I arrange columns alphabetically by column label? Beatcal Excel Worksheet Functions 1 July 21st 07 08:56 PM
How do you arrange text alphabetically in a column? towerfly234 New Users to Excel 1 September 27th 06 04:20 PM
How do I sort a column alphabetically not consider "the" or "a"? anteaters00 Excel Discussion (Misc queries) 4 September 13th 05 11:46 AM
How do I combine tabulated data into a single column and list alphabetically? Kev Nurse Excel Discussion (Misc queries) 1 February 4th 05 01:55 AM
How do I arrange entries in a column alphabetically ferrymaster77 Excel Discussion (Misc queries) 1 January 21st 05 11:58 AM


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