Chanzaiming
New Member
Hi,
I have found some codes from the internet to "disable" the Ctrl+X.
Everything works fine within the workbook.
However, when the workbook that contained the VBA is closed, and the excel application is still running(either due to other workbook is open or just a blank window), I noticed that when I press Ctrl+X, the VBA opens my workbook and tried to run the sub that disable the Ctrl X, and freeze excel.
Any idea how to avoid the misfire from happening?
I understand that shutting down the application completely can achieve that, but the users may have something else open and may not want to close yet.
I have attached the workbook here.
Warning: it will gets into a loop(still trying to figure out why), you can hit ESC to get out of it.
I have found some codes from the internet to "disable" the Ctrl+X.
Everything works fine within the workbook.
However, when the workbook that contained the VBA is closed, and the excel application is still running(either due to other workbook is open or just a blank window), I noticed that when I press Ctrl+X, the VBA opens my workbook and tried to run the sub that disable the Ctrl X, and freeze excel.
Any idea how to avoid the misfire from happening?
I understand that shutting down the application completely can achieve that, but the users may have something else open and may not want to close yet.
I have attached the workbook here.
Warning: it will gets into a loop(still trying to figure out why), you can hit ESC to get out of it.