sparky2205
Well-known Member
- Joined
- Feb 6, 2013
- Messages
- 507
- Office Version
- 365
- 2016
- Platform
- Windows
Hi folks,
I have 2 workbooks, each with the same macros, that I have added to the context menu in each.
Everything works fine as long as I have only one workbook open at a time.
If I have both workbooks open simultaneously, the context menu item replicates in the following manner.
Open wb1: context menu ok
With wb1 open, open wb2: wb1 context menu item ok; wb2 context menu item duplicate
With wb2 still open, close and reopen wb1: wb1 and wb2 context item now duplicate
From this point, once I leave one wb open and close and reopen the other a new replicate will appear in the context menu of the reopened wb.
So I could end up with countless replicates of the context menu item.
If I close both wbs and reopen one it will be back to normal i.e. one context menu entry.
Any way I can avoid this?
I have 2 workbooks, each with the same macros, that I have added to the context menu in each.
Everything works fine as long as I have only one workbook open at a time.
If I have both workbooks open simultaneously, the context menu item replicates in the following manner.
Open wb1: context menu ok
With wb1 open, open wb2: wb1 context menu item ok; wb2 context menu item duplicate
With wb2 still open, close and reopen wb1: wb1 and wb2 context item now duplicate
From this point, once I leave one wb open and close and reopen the other a new replicate will appear in the context menu of the reopened wb.
So I could end up with countless replicates of the context menu item.
If I close both wbs and reopen one it will be back to normal i.e. one context menu entry.
Any way I can avoid this?