LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Automatically alphabetize excel worksheet

Where do I enter a string in the "worksheet code" to automatically
alphabetize my worksheet by the names in the A column. I have the string, I
just don't know how to access the 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

 
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
alphabetize - automatically mandyjo830 Excel Worksheet Functions 2 November 14th 06 09:30 PM
Is there a way to have a excel automatically alphabetize a sheet? Mzinsser Excel Discussion (Misc queries) 2 September 18th 06 05:13 PM
need to program my lists to automatically alphabetize when new ent star*dreams Excel Worksheet Functions 0 June 1st 05 02:20 AM
How do I automatically alphabetize multiple worksheets in a singl. TS Excel Discussion (Misc queries) 2 March 19th 05 01:05 AM
how do I alphabetize items automatically in excel inspector timm Excel Worksheet Functions 1 December 18th 04 03:25 PM


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