"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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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