dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,362
- Office Version
- 365
- 2016
- Platform
- Windows
I have a worksheet that copies to another sheet successfully but I want to add in the code for it to sort the dates in column A so it is in ascending order. The code I am using to sort that column gives me this error https://www.screencast.com/t/PfhLFOtFxR7 and the code is
Combo is a variable that changes depending on the date and I have it successfully transferring into the correct sheet without the sort code. What code should I be using?
Code:
Worksheets(combo).Range("A4:A1000").Sort Key1:=Range("A4:A1000"), Order1:=xlAscending
Combo is a variable that changes depending on the date and I have it successfully transferring into the correct sheet without the sort code. What code should I be using?