Anytime the Excel 2010 application is opened, regardless of what book is selected, I would like to run some code that automatically refreshes a database.
Yes, if I selected the same workbook, then code could be put in ThisWorkbook. But, how does one run some code when any workbook is selected or if the Excel Application alone is started? Can an Addin do this?
The code could actually be simple enough to just open up the Excel Workbook that has all of the code to refresh the database and then it could close itself.