Need to use a macro on cells what I would like to select. I've recorded one but no luck with it. Can someone please help me with it?
Range("U16:X36").Select
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Clear
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Add2 Key:=Range("U16:U36"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Add2 Key:=Range("W16:W36"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort
.SetRange Range("U16:X36")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Thank you!
Range("U16:X36").Select
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Clear
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Add2 Key:=Range("U16:U36"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort.SortFields. _
Add2 Key:=Range("W16:W36"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("eBay-edit-price-quantity-templa").Sort
.SetRange Range("U16:X36")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Thank you!