K
Kerrick Sawyers
Good Friday morning everyone!
I was hoping that someone could help me with a macro that
I keep getting an error message on. I have a macro that I
need to sort a designated range in ascending order by
column a that reads as follows:
Sub refresh()
Application.Goto Reference:="Acct_Info"
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=True,
Orientation:=xlTopToBottom
End Sub
The macro works fine when I create it, but when I save and
close the file and reopen it, I get an error message that
says "Sort method of range class failed." Does anyone
know what I am doing wrong here. I would appreciate any
assistance you could provide. Thanks!
Kindest regards,
Kerrick Sawyers
I was hoping that someone could help me with a macro that
I keep getting an error message on. I have a macro that I
need to sort a designated range in ascending order by
column a that reads as follows:
Sub refresh()
Application.Goto Reference:="Acct_Info"
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=True,
Orientation:=xlTopToBottom
End Sub
The macro works fine when I create it, but when I save and
close the file and reopen it, I get an error message that
says "Sort method of range class failed." Does anyone
know what I am doing wrong here. I would appreciate any
assistance you could provide. Thanks!
Kindest regards,
Kerrick Sawyers