by cooldad » Wed Jul 30, 2008 9:26 am
Thanks, Gary, I knew you would've built in something like this!
I am using the Application.onTime function to enter the value in Q2, and it works perfectly.
For others that are interested in doing the same, here's the VBA code
In the code for ThisWorkbook, add the following:
Private Sub Workbook_Open()
Application.OnTime TimeValue("12:00:00"), "ReloadQuickPickList"
End Sub
When the spreadsheet opens, this will set a timer so that at 12:00:00, the macro "ReloadQuickPickList" will be executed.
Then anywhere in your modules, add the following macro:
Sub ReloadQuickPickList()
Application.OnTime TimeValue ("12:00:00"), "ReloadQuickPickList"
Workbooks("YourWorkbook.xls").Worksheets("BetAssist").Range("Q2") = -3
End Sub
This will set a new timer (to be executed the next day), and then it enters the value -3 in cell Q2 which will result in reloading of the quick pick list in Betting Assistant.