View Single Post
 
Old 12-24-2020, 07:59 PM
coffent coffent is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Dec 2019
Posts: 40
coffent is on a distinguished road
Default

Whoops, perhaps not. I tried changing the line to

Set Shortcut = ThisWorkbook.Application.CommandBars("Cell")

as you suggested. However when I opened a new blank workbook, the context item was still there. And if I shut down the workbook where I ran the code without invoking the Auto_Close subroutine the context item still persisted in a new blank workbook. The "ThisWorkbook" limiter doesn't seem to work, at least in my case.
Reply With Quote