troubleshooting Question

Run a Macro anytime the Excel Application is Opened

Avatar of Cook09
Cook09Flag for United States of America asked on
Microsoft OfficeMicrosoft ExcelMicrosoft Applications
19 Comments3 Solutions338 ViewsLast Modified:
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.
Join our community to see this answer!
Unlock 3 Answers and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros