Disable Ctrl-Break for auto open macros.

S

Sagiv Levi

Hi there,

I want to disable the ctrl-break when auto open macros are running, how do I do it ?

Thanks for the all the help so far,
Sagiv
 
J

J.E. McGimpsey

I want to disable the ctrl-break when auto open macros are running, how do I
do it ?

Within your auto macro, use

Application.EnableCancelKey = xlDisabled

Note that this can be very dangerous if your code goes into a
non-terminating loop, etc. See the VBA Help topic "EnableCancelKey
Property"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top