I want the macro to run when the spreadsheet is opened the first time each day.
Multiple people will open the spreadsheet throughout the day and I don't want it running every time someone opens the file. It's currently set to run 1 minute after each time it's opened and that does work.
This is what I have:
In a Module:
Sub SingleLevelSort()
ActiveSheet.Unprotect Password:="VANS01"
Worksheets("Portfolio Tracker").Sort.SortFields.Clear
Range("A2:BA5000").Sort Key1:=Range("F3"), Header:=xlYes
ActiveSheet.Protect Password:="VANS01", AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=True, DrawingObjects:=True, Scenarios:=False, AllowDeletingRows:=True
Call Workbook_Open
End Sub
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:01:00"), "SingleLevelSort"
End Sub
In this WorkBook:
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:01:00"), "SingleLevelSort"
End Sub