I've built an addin to give my users different functions depending on which workbooks they are using. There are two different types of workbooks we use. Type A gets a certain set of commands, Type B gets others.
I have a custom menu and want to check when the user switches in between different workbooks (switching, opening or closing) in order to enable/disable the correct commands for which workbook they are in.
How do I check when the activeworkbook has changed from my addin? I want to run a macro whenever a different workbook has been activated
Thanks in advance for any help!!!
I have a custom menu and want to check when the user switches in between different workbooks (switching, opening or closing) in order to enable/disable the correct commands for which workbook they are in.
How do I check when the activeworkbook has changed from my addin? I want to run a macro whenever a different workbook has been activated
Thanks in advance for any help!!!