This is not a problem, just what seems like weird Excel behaviour that I’d like to understand.
I’m using Excel 365 on a Windows 10 desktop PC. I have a workbook with modules designed to operate on that workbook, call it A. I added a macro button to the Quick Access Toolbar assigned to the top level sub in A. So the button is there on the toolbar of every other workbook too.
Here’s the weird part: if I press the macro button on another workbook, when A isn’t even open, Excel actually opens it and runs the macro. It doesn’t cause a problem - at least it hasn’t so far - but I didn’t think this was supposed to happen automatically i.e. a macro button opening a workbook without any code to make that happen.
Can someone explain it? Apologies if it’s a stupid question with an obvious answer but I’ve done a lot of searches without any joy.
I’m using Excel 365 on a Windows 10 desktop PC. I have a workbook with modules designed to operate on that workbook, call it A. I added a macro button to the Quick Access Toolbar assigned to the top level sub in A. So the button is there on the toolbar of every other workbook too.
Here’s the weird part: if I press the macro button on another workbook, when A isn’t even open, Excel actually opens it and runs the macro. It doesn’t cause a problem - at least it hasn’t so far - but I didn’t think this was supposed to happen automatically i.e. a macro button opening a workbook without any code to make that happen.
Can someone explain it? Apologies if it’s a stupid question with an obvious answer but I’ve done a lot of searches without any joy.