Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I keep getting a subscript out of range and can't find why. All of my values are correct. Have I formatted something incorrectly? Sub SortIDData(ShName, StartCol, EndCol, StartRow, EndRow) Debug.Print "Starting SortIDData" Debug.Print "wbkNew.Name " & wbkNew.Name Debug.Print "ShName " & ShName & _ vbLf & "StartCol " & StartCol & _ vbLf & "StartRow " & StartRow & _ vbLf & "EndCol " & EndCol & _ vbLf & "Endrow " & EndRow wbkNew.Sheets(ShName).Range(StartCol & StartRow & ":" & _ EndCol & EndRow).Sort _ Key1:=Sheets(ShName).Range(StartCol & StartRow), _ Order1:=xlDescending, Header:=xlNo, _ OrderCustom:=4, MatchCase:=False, _ Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal End Sub -- Thanks for your help. Karen53 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort problem | Excel Discussion (Misc queries) | |||
Sort Problem | Excel Discussion (Misc queries) | |||
Sort problem - help! | Excel Discussion (Misc queries) | |||
sort problem | Excel Worksheet Functions | |||
Sort problem | Excel Discussion (Misc queries) |