Active Workbook event detection from a general purpose ADDIN

Hi again,

I have an addin that "presides" over all other Workbooks that get opened within the Excel application.

From within the ADDIN, I want to detect if the Active Workbook has either:
1) Changed the Activesheet or Tab
2) Issued a Save or Save As command
3) Issued a Close command.

Basically, I want the Activeworkbook (that doesn't know about the ADDIN's presence or else I would embed code) to tell the ADDIN what it is doing.

Is this possible without making any amendments to the Active Workbook?

Kind regards and thanks,
Robert
RODELSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
Yes - you need an application-level event handler. See Chip Pearson's article here for a full write up: http://www.cpearson.com/Excel/AppEvent.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rory ArchibaldCommented:
PS The event handling code all goes in the add-in.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.