Problem with Esc button

haseft

Active Member
Joined
Jun 10, 2014
Messages
321
Hi!

After running the macro the Esc button still doesn't work.
When I press the Esc button get massage:
" You can not run macros: Sheet1.xlms'!NoChange. macros may not be available in this workbook or all macros are disabled."

Code:
Sub Start()
'
Application.EnableCancelKey = False
'
Worksheets("Sheet1").Activate
'
'som code
'
Application.EnableCancelKey = True

End Sub
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello haseft,

Is it a typo .xlms, it should be .xlsm to be able to run VBA code. Also the message refers to subroutine NoChange, but your code is in subroutine Start?

Clarify these issues and let’s see what is going on.

Also, what happens when you save your work, close all applications, restart your computer, and use the ESC key BEFORE you run any code?
 
Upvote 0
Hi Phils
I get the same error when I restart the Excel och press the Esc (before running macro),
 
Upvote 0
Hey haseft,

It seems that there maybe an issue with the workbook itself. It may be corrupted or damaged. I hope you have a clean copy from which you can recover.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top