"shift" key

skadan

Board Regular
Joined
Sep 5, 2002
Messages
54
With Xl & Access, and I assume most MS Office applications, holding down the "Shift" key when opening a file disables/stops any autoexec routine running.

Any idea how to disable the effect of the "shift key"?

Thank you.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
Hi skadan,

I don't know how to disable the effect of the shift key, but if your goal is to prevent a user from disabling your Auto_Open or ThisWorkbook_Open event there is at least a way to force the user to both enable macros and to let the Open event run. This is simply to password protect and hide (I recommend setting the Visible property of the sheets to xlVeryHidden) all the worksheets in your workbook (save one blank sheet) and have your Open event unhide and unprotect them. Thus the workbook is unusable until the Open event runs. Of course the VBAProject must also be password protected so the user cannot see the code containing the password.

I hope this is helpful.

Damon
 

skadan

Board Regular
Joined
Sep 5, 2002
Messages
54
excellent suggestion, thanks Damon.
I do protect the sheets, but never thought of forcing the user to have macros enabled in this method. I'll give it a try.

Mike
 

Forum statistics

Threads
1,144,307
Messages
5,723,629
Members
422,505
Latest member
Noar33

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
Top