I have the following Macro:
Private Sub Worksheet_Activate()
'
' Autosort Macro
' Macro recorded 07/02/04 by PCMS GROUP
'autosort
Range("B12:I191").Select
Range("I12").Activate
Selection.Sort Key1:=Range("I12"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A1").Select
End Sub
How can i get this macro to run automaticaly when i open the workbook. There is only one sheet to the spreadsheet, and I do not want to use a button. I would like the macro to run when the spreadsheet is opened.
Thanks :wink:
Private Sub Worksheet_Activate()
'
' Autosort Macro
' Macro recorded 07/02/04 by PCMS GROUP
'autosort
Range("B12:I191").Select
Range("I12").Activate
Selection.Sort Key1:=Range("I12"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A1").Select
End Sub
How can i get this macro to run automaticaly when i open the workbook. There is only one sheet to the spreadsheet, and I do not want to use a button. I would like the macro to run when the spreadsheet is opened.
Thanks :wink: