i wish i could post the data.........but i cant right now
I did do a macro record and then put this into the code and it worked.......take a look . any ideas on why this worked please please please please let me know!!!!!!!!!!!!!! I just cant figure it out.
Workbooks(Portfolio_Filename).Worksheets("Snapshot_Inputfile").Sort.SortFields.Clear
Workbooks(Portfolio_Filename).Worksheets("Snapshot_Inputfile").Sort.SortFields.Add Key:= _
Range("A2:A1145"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
:=xlSortNormal
Workbooks(Portfolio_Filename).Worksheets("Snapshot_Inputfile").Sort.SortFields.Add Key:= _
Range("T2:T1145"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
:=xlSortNormal
Workbooks(Portfolio_Filename).Worksheets("Snapshot_Inputfile").Sort.SortFields.Add Key:= _
Range("U2:U1145"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
:=xlSortNormal
With Workbooks(Portfolio_Filename).Worksheets("Snapshot_Inputfile").Sort
.SetRange Range("A1:U1145")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Bookmarks