A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I do not recommend auto-sorting.
No offense, but I'm not looking for a recommendation. Just a code
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello, I am new to Macros and unfamiliar with certain functions.
I have a list of names (Column A), and a list of dates (Column C) associated with those names in a separate column, same row.
There is also 4 rows of headers before beginning the data.
I change the dates that are associated with those names and sort them from Oldest to newest.
I would like my changes to be reflected automatically and sorted every time I enter in new data.
I have no idea how to use a macro to accomplish this.
Thank You
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I do not recommend auto-sorting.
No offense, but I'm not looking for a recommendation. Just a code
No offense taken.
Gord
Figured it Out
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Range("C4").Sort Key1:=Range("C467"), _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub
Automatically would mean VBA.
I do not recommend auto-sorting.
If an incorrect entry is made it will be hard to find after an autosort sort has taken place.
Enter your data, check it twice then do your sort using Data>Sort
Gord