I have the following code (which isn't working) the problem is in the Range aspect, basically I want to start the sort from Row 4 to Row 100 for each Column using a For Next Loop
Can someone tell me why this code does not work... it puts the contents of the cells in row 4 up to cell A1
Thanks
If IT ain’t working Binnit and Reboot
Code:
X = ActiveSheet.UsedRange.Columns.Count
[a1].Select
For i = 1 To X
Selection.Sort Key1:=Range(Cells(4, i), Cells(100, i)), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Next i
Can someone tell me why this code does not work... it puts the contents of the cells in row 4 up to cell A1
Thanks
If IT ain’t working Binnit and Reboot