I’m trying to Sort (with.sort) the data (entirerow) using .setrange. However the Dynamic range I have selected in not getting sorted/picked up correctly.
The Dynamic are
LngFristrow = 8
FundColumn = 39
LngLastRow = 2973
So basically I want to take all the rows from 8 to 2973 and sort them. Here is what I currently have. I would be grateful if someone could tell me what I’m doing wrong – thanks.
.SetRange Range(Cells(lngFirstRow, Fundcolumn).EntireRow, _
Cells(lngLastRow, Fundcolumn).EntireRow)
Try