B
Big Chris
I'm a real beginner in VBA and I'm trying to write the code which
basically says
If A1 = 1 then run this code
Application.Goto Reference:="dayresultssort"
Selection.Sort Key1:=Range("C9"), Order1:=xlAscending,
Key2:=Range("D9") _
, Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, MatchCase:=False
_
, Orientation:=xlTopToBottom
Range("O9").Select
....which sorts my date within the array 'dayresultssort' by column C.
OR......
If A1=2 then run this code
Application.Goto Reference:="dayresultssort"
Selection.Sort Key1:=Range("G9"), Order1:=xlAscending,
Key2:=Range("D9") _
, Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, MatchCase:=False
_
, Orientation:=xlTopToBottom
Range("O9").Select
......which sorts the same data by column 'G'.
I then want to end by opening my userform 'information_box'.
I've had some great help from here in the past but can't always locate
the helper to offer my appreciation.....so please accept it in
advance.
Regards,
basically says
If A1 = 1 then run this code
Application.Goto Reference:="dayresultssort"
Selection.Sort Key1:=Range("C9"), Order1:=xlAscending,
Key2:=Range("D9") _
, Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, MatchCase:=False
_
, Orientation:=xlTopToBottom
Range("O9").Select
....which sorts my date within the array 'dayresultssort' by column C.
OR......
If A1=2 then run this code
Application.Goto Reference:="dayresultssort"
Selection.Sort Key1:=Range("G9"), Order1:=xlAscending,
Key2:=Range("D9") _
, Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, MatchCase:=False
_
, Orientation:=xlTopToBottom
Range("O9").Select
......which sorts the same data by column 'G'.
I then want to end by opening my userform 'information_box'.
I've had some great help from here in the past but can't always locate
the helper to offer my appreciation.....so please accept it in
advance.
Regards,