Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This sort was working yesterday. This morning it would not sort. I don't
know if it didn't get saved properly. The module compiles. After it wouldn't sort I had to add a few fields since they changed the speadsheet db. I just renamed the column numbers of the sort keys that was all I changed. can you tell me why it doesn't sort. When I run the macro it just sits there and doesn't move. No response. Thanks, -----macro that doesn't sort------ Sub Sort() ' ' Sorts by Item Name, Dept, Status# Macro Dim rng As Range ' sorts on Dept, & Status since there is only 3 keys available in a sort With ActiveSheet Set rng = .Range(.Cells(1, 1), .Cells(Rows.Count, 29).End(xlUp)) rng.Sort key1:=.Cells(2, 16), Order1:=xlAscending, _ key2:=.Cells(2, 19), Order2:=xlAscending, _ key3:=.Cells(2, 3), Order3:=xlAscending, Header:=xlYes, OrderCustom:=1, _ MatchCase:=False, Orientation:=xlTopToBottom End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spreadsheet macro stopped working! | Excel Discussion (Misc queries) | |||
Macro stopped working | Excel Discussion (Misc queries) | |||
vba sorting stopped working | Excel Programming | |||
Macro Execution Stopped | Excel Programming | |||
why did the macro stopped working? | Excel Programming |