Force macros to run!

prof9292

New Member
Joined
Aug 27, 2002
Messages
1
When the shift key is held down, auto code does not run. Can someone tell me how to disable in Excel? Also, is there a way to not allow a user to "disable macros" when a workbook opens?

Thank you
Bill
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
this is a dangerous code to use.
try it at your own danger
IT will work once the macros have been enabled.

'turns Shift off
Application.OnKey "+", ""

'turns Shift on
Application.OnKey "+"

this is untested. I aint game enough!
This message was edited by Qroozn on 2002-08-28 21:24
 
Upvote 0
Nice, you would want to either hide all the sheets and unhide them on enter or setup the file as an addin and unset it on enter, there are a few ways but im not sure of a full proof way of doing it other than turning there macro protection off which has to be done at a prior time good luck

Brett
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,172
Members
448,870
Latest member
max_pedreira

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