ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable alt+tab (https://www.excelbanter.com/excel-programming/374875-disable-alt-tab.html)

Ozgur Pars[_2_]

Disable alt+tab
 
Hi,
I am trying to disable alt+tab so that the end user of a form can only exit
the userform through submiting when hitting a button.
why does this not work?
Application.OnKey "%{TAB}", ""

Thank you,
Ozgur

[email protected]

Disable alt+tab
 
Are you sure you want to do this? Alt-Tab is configured in the OS, and
it is used to help people get out of damage caused by badly written
programs. Professional programs, like EXCEL itself, do not disable it.
No matter how carefully crafted you program may be, there will always
come a time that someone wants to back out of it.

Hope this helps,
Dom



Ozgur Pars wrote:
Hi,
I am trying to disable alt+tab so that the end user of a form can only exit
the userform through submiting when hitting a button.
why does this not work?
Application.OnKey "%{TAB}", ""

Thank you,
Ozgur



Ozgur Pars[_2_]

Disable alt+tab
 
Dom you might be right maybe if there is a way I should try to make it
possible with a password. But I can't get it work right now...
Thanks for the reply.

Ozgur

" wrote:

Are you sure you want to do this? Alt-Tab is configured in the OS, and
it is used to help people get out of damage caused by badly written
programs. Professional programs, like EXCEL itself, do not disable it.
No matter how carefully crafted you program may be, there will always
come a time that someone wants to back out of it.

Hope this helps,
Dom



Ozgur Pars wrote:
Hi,
I am trying to disable alt+tab so that the end user of a form can only exit
the userform through submiting when hitting a button.
why does this not work?
Application.OnKey "%{TAB}", ""

Thank you,
Ozgur





All times are GMT +1. The time now is 03:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com