matthew_ong12
New Member
- Joined
- Aug 15, 2018
- Messages
- 18
Hi Mr Excel, would like to ask for your inputs on how to make this code work. I'm encountering an error when running it.
Code:
With ActiveWorkbook.Worksheets("Data Analysis").Sort
.SetRange Range("o3289")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Notes:
The "Data Analysis" is where the numbers are found and is to be sorted. The button is found in another sheet.
The numbers to be sorted are found on the range o3 to o289
Hoping to hear from you soonest
Regards,
Matthew
Code:
With ActiveWorkbook.Worksheets("Data Analysis").Sort
.SetRange Range("o3289")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Notes:
The "Data Analysis" is where the numbers are found and is to be sorted. The button is found in another sheet.
The numbers to be sorted are found on the range o3 to o289
Hoping to hear from you soonest
Regards,
Matthew