Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

automatic sorting in excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gostal - 21 Dec 2006 01:27 GMT
I would like to be able to have a column sorted alphabetically contiuously.
In other words, whenever data is entered, the whole column gets arranged
alphabetically without having to "click' on the sort function.

I am not a power user of excel, but I now understand the basics of running a
macro. I have been guided to use the following macro example and adapt it to
my worksheet. I have tried a few changes, but I cannot get it to work. Lets
say the filename is "mybook" and the worksheet name is "sheet1" and the
range I want to sort automatically is B1:B20

           Private Sub Worksheet_Change(ByVal Target As Range)

           Columns("B:B").Select
               Selection.Sort Key1:=Range("B1"), Order1:=xlAscending

           End Sub

However, I am not sure exactly which part I need to change in this code, for
it to work on my worksheet.

Thanks.
Ben - 26 Dec 2006 20:35 GMT
Try Aaron Blood's Auto Sort subroutine. Its triggered automatically by
typing, and returns the sorted version on a different sheet. Sounds
exactly what you're after. See XL-Logic.com for details, you have to
register to download.

> I would like to be able to have a column sorted alphabetically contiuously.
> In other words, whenever data is entered, the whole column gets arranged
[quoted text clipped - 17 lines]
>
> Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.