The posted solution is missing one line of code:
The posted solution will sort only column A. That sounds like what you said you wanted but is that the only data in your worksheet? Or do you need to sort a lot of columns of data using column A as the sort key?
By the way, for the worksheet reference I would suggest deleting "ActiveWorkbook." (including the dot). In this case it probably won't cause an issue but in general depending on ActiveWorkbook (or Active anything) is risky since you as the coder don't really know for certain what is going to be active at any given time, and if code changes later it's even stickier.
Bookmarks