hi there, I have a macro that selects a range of values that I then need to sort descending by column C.
the recorded macro has a distinct cell reference of C, rather than a value derived automatically
can anyone tell me if this would always work, or if there is a better way of doing it? (the range will not always be where it is.
column-wise it will be, but it may be several rows lower or several rows higher...
many thanks...
the recorded macro has a distinct cell reference of C, rather than a value derived automatically
Code:
Range(Columns("B:B").Find("Unplanned").Offset(0, 1), _
Columns("B:B").Find("Unplanned Total").Offset(0, 14)).Select
Application.CutCopyMode = False
Selection.Sort Key1:=Range("C53"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
can anyone tell me if this would always work, or if there is a better way of doing it? (the range will not always be where it is.
column-wise it will be, but it may be several rows lower or several rows higher...
many thanks...