View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Jezebel[_3_] Jezebel[_3_] is offline
external usenet poster
 
Posts: 45
Default Totally Disabling (^ save ) (Save as) and Save Icon - Which code do I use:

They can also open the document with macros disabled and defeat the exercise
entirely.



"Chip Pearson" wrote in message
...
Open the Immediate Window in VBA (Ctrl+G), and enter the following lines,
each followed by ENTER:

Application.EnableEvents = False
ThisWorkbook.Save
Application.EnableEvents = True


Of course, your users could do exactly the same thing to save the file.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"harpscardiff"
wrote in message
...

Herbert - Thanks alot, the code does work.

Now that i've entered the code, how do save the change ready for the
users?


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile:
http://www.excelforum.com/member.php...o&userid=25960
View this thread:
http://www.excelforum.com/showthread...hreadid=483443