Lauren Ward
New Member
- Joined
- Dec 9, 2019
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Greetings all - relatively new to VBA, and struggling with a routine that has worked before.
I usually would copy and paste and adjust the range and it would work fine, but now it's not sorting at all.
The item is a list of statements, with a $ value and % value. I want to sort by descending value on the % (K) when the spreadsheet it activated.
Here is what I had ... why isn't it working?
Thanks in advance
Range("C69:K76").Select
Selection.Sort Key1:=Range("k64"), Order1:=xlDescending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("j8").Select
I usually would copy and paste and adjust the range and it would work fine, but now it's not sorting at all.
The item is a list of statements, with a $ value and % value. I want to sort by descending value on the % (K) when the spreadsheet it activated.
Here is what I had ... why isn't it working?
Thanks in advance
Range("C69:K76").Select
Selection.Sort Key1:=Range("k64"), Order1:=xlDescending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("j8").Select