title: Resume Opening Workbook After Addin Interrupts
body: <p>I've written an Excel addin that periodically checks a remote repository for data updates, including a check when the addin loads at Excel start up (during the addin's <code>Workbook_Open</code> event). If new respository data is detected, the addin asks the user for permission to proceed with the update. If the user clicks "yes", the addin successfully updates itself and everything is happy... except...</p>
  
  <p>If Excel is not already running and the user selects an Excel file to open (e.g. via double-click in Windows), this sequence of events occurs and everything works, but the user-requested file opening is interrupted and not re-engaged. The Excel app is running, but with no workbook loaded (the workbook area is an empty frame).</p>
  
  <p>I believe I have two options, neither of which I know how to accomplish:</p>
  
  <ol>
  <li>Prevent the addin from completing its update check until the user-selected file has completed its open sequence and is fully loaded, or</li>
  <li>Allow the addin to update itself and then somehow re-engage the user-selected file to complete the file open/load.</li>
  </ol>
  
  <p>I have not been able to discover the filename/path of the user-requested file, so my addin isn't able to direct that file to be loaded.</p>
  
  <p>My current workaround is a <code>MsgBox</code> telling the user to close Excel and re-open the selected file. Ideally, the addin update should occur and the original action should complete without requiring user intervention.</p>
  
  <p>(Building on Option 1, I could start a delay timer for the addin to check for updates XX number of seconds after Excel starts, but this seems kludgy to me.)</p>
  
  <p>Any guidance or ideas are appreciated. My interwebz searches aren't hitting the right combination of keywords for the exact scenario.</p>