shavenlunatic
MIS
I have code that finds the first empty sell and uses that to select the range of cells that i want to sort. The selection part works fine but when it comes to sort it gives an "Sort reference is not valid" error.
Do
scany = scany + 1
Loop Until Sheet3.Cells(scany, 1) = ""
myrange = "A2:C" & scany - 1
Sheet3.Range(myrange).CurrentRegion.Select
Selection.Sort Key1:=Range("A2"),
Order1:=xlAsscending
________
clueless
Do
scany = scany + 1
Loop Until Sheet3.Cells(scany, 1) = ""
myrange = "A2:C" & scany - 1
Sheet3.Range(myrange).CurrentRegion.Select
Selection.Sort Key1:=Range("A2"),
Order1:=xlAsscending
________
clueless