by loq » Tue Sep 04, 2012 11:51 am
gizzard, I appreciate your reply but I think you may be mistaken.
When the workbook is opened, "loadQuickPickList" is set to run at midnight.
"loadQuickPickList" simply sets the boolean value "triggerQuickPickListReload" to TRUE before setting "loadQuickPickList" to run at midnight again (the next time it is midnight).
The Worksheet_Change event in Sheet1 checks when "triggerQuickPickListReload" is TRUE before inserting "-3" in cell Q2, which is what actually triggers the reload of the Quick Pick List.
The problem is that this will never happen if there is no change in the worksheet, which there won't be if BA and the spreadsheet are loaded after all of that day's races. For example, all of yesterday's UK racing finished at 6pm - I loaded the spreadsheet with BA at 8pm but the Quick Pick List did not reload at midnight due to this problem.
I'm looking for a solution to this problem, so that the Quick Pick List is automatically reloaded at midnight (and the first market selected, of course) without user intervention.