Automatic Sorting - Alphabetically

sean

New Member
Joined
Apr 7, 2002
Messages
9
I was wondering if it is possible to automatically sort a column alphabetically.

Like if I have a list:
ace
bat
cat

and then if I add the word "abs" then the word will automatically go above the word ace.

Is this possible? Thank you in advance,
Sean
This message was edited by sean on 2002-04-08 06:34
 
Thank you kindly for all of your help Derek, I appreciate it.

I hope all is well in Australia.

Sean
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You can use VBA. Try the following code in the code for your worksheet:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.EntireColumn.Sort Key1:=Target, Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub




I tried using this code but it moved my data (List of names) up to the first row. If i have my data starting from B10 up to B45, I want my data to remain at B10 downward. I also want to expand selection to the next column.


thanks,
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,582
Members
449,039
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top