I have a macro that copies data from one spreadsheet and creates a new sheet based on a name entered in a input box
The last bit of the macro I need to do is to Filter the newly created active sheet by Column U - Acending
But I am getting Run Time errors
ActiveSheets.Select
Range("B1").Activate
ActiveSheet.Sort.SortFields.Clear
ActiveSheet.Sort.SortFields.Range ("A1:BV18"), SortOn:=xlSortOnValues, Order:=Ascending, DataOption:=xlSortNormal
With ActiveSheets.Select
.SetRange Range("A1:BV18")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
The last bit of the macro I need to do is to Filter the newly created active sheet by Column U - Acending
But I am getting Run Time errors
ActiveSheets.Select
Range("B1").Activate
ActiveSheet.Sort.SortFields.Clear
ActiveSheet.Sort.SortFields.Range ("A1:BV18"), SortOn:=xlSortOnValues, Order:=Ascending, DataOption:=xlSortNormal
With ActiveSheets.Select
.SetRange Range("A1:BV18")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply