Neat trick to force users to enable macros.

They are both kinda correct. If you change a worksheet to xlsheet veryhidden, this will prompt excel to save, since it was changed. If you have the application.displayalerts set to false, then you will overwrite the workbook. If you don't have displayalerts set to false, you will recieve the prompt to save, with which you can select not to save.

Cal
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I sense a fight coming on! i'm not a war-monger - honest!

No, no. No fights here. Like I said, I actually think it's quite a good idea. I just wanted to point out a minor pitfall which could cause problems.

If you don't have displayalerts set to false, you will recieve the prompt to save, with which you can select not to save.
And that's where the problem lies, because then the next person who opens the workbook can do so without macros enabled and not see the message.

Sorry if I came across as rude. It wasn't intentional.

Nick
 
New reply to an old post; looking for a solution to this, I ran into this post, but also found a better (imho) one, so I documented it.

I think the discussion here can be overcome by this solution; http://www.thijsschreijer.nl/blog/?p=263

It leave the default 'save' behaviour of Excel alone, so it works as any user would expect it.
 

Forum statistics

Threads
1,222,642
Messages
6,167,267
Members
452,107
Latest member
cami_dev

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