Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Overriding the menu "Save" option?

If my users click "Save", I need to stop them from actually
saving any changes to my workbook. I want my workbook
to be unchangeable, and if someone clicks "Save", I want
to call a separate subroutine which will write data to a separate
file.

Can anyone provide any help on over-riding the "Save"
option and making my workbook unchangeable??

thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Overriding the menu "Save" option?

One way:

Save your workbook as "Read Only" (Save As/Options/Read-only Recommended)

It's nearly impossible to make any solution foolproof, since fools are
so ingenious. You could use VBA to replace the Save command, but that
can be thwarted by opening with macros disabled. You can use VBA to make
it difficult to open the workbook without macros, but there's no
reliable way to prevent a reasonably savvy user from bypassing that.



In article ,
"Robert Crandal" wrote:

If my users click "Save", I need to stop them from actually
saving any changes to my workbook. I want my workbook
to be unchangeable, and if someone clicks "Save", I want
to call a separate subroutine which will write data to a separate
file.

Can anyone provide any help on over-riding the "Save"
option and making my workbook unchangeable??

thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Overriding the menu "Save" option?

I realize that no solution is foolproof.....

I am still interested in knowing about any of these ideas that are
foolproof. 8)

How can I intercept the menu "Save As" command?? Is the
solution related to the Workbook_BeforeSave() function???



"JE McGimpsey" wrote in message
...
One way:

Save your workbook as "Read Only" (Save As/Options/Read-only Recommended)

It's nearly impossible to make any solution foolproof, since fools are
so ingenious. You could use VBA to replace the Save command, but that
can be thwarted by opening with macros disabled. You can use VBA to make
it difficult to open the workbook without macros, but there's no
reliable way to prevent a reasonably savvy user from bypassing that.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Overriding the menu "Save" option?

Ooops, let me re-phrase that:

I am still interested in knowing about any of these ideas
that are NON-foolproof!

8)


"Robert Crandal" wrote in message
...
I realize that no solution is foolproof.....

I am still interested in knowing about any of these ideas that are
foolproof. 8)

How can I intercept the menu "Save As" command?? Is the
solution related to the Workbook_BeforeSave() function???



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default Overriding the menu "Save" option?

I suggest you make the file read-only using Windows Explorer, instead of
saving it with read-only recommended. In Windows Explorer, right-click on the
(closed) workbook. Select Properties put a check in the 'read-only' box
OK. Unless your users reverse this procedure in Windows Explorer before
opening the workbook, they won't be able to save over it from Excel. Making
the file read-only also inhibits accidental deletion by requiring
confirmation first.

If you want to try Workbook_BeforeSave event code, it only needs to contain
the statement Cancel=True.

Hope this helps,

Hutch

"Robert Crandal" wrote:

Ooops, let me re-phrase that:

I am still interested in knowing about any of these ideas
that are NON-foolproof!

8)


"Robert Crandal" wrote in message
...
I realize that no solution is foolproof.....

I am still interested in knowing about any of these ideas that are
foolproof. 8)

How can I intercept the menu "Save As" command?? Is the
solution related to the Workbook_BeforeSave() function???



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Save" and "Save As" options greyed out - "Save as Webpage" option Bill Excel Discussion (Misc queries) 0 January 16th 07 04:47 PM
Disabling "SAVE AS" option under "File" Bidyut Bhattacharjee Excel Discussion (Misc queries) 3 March 22nd 06 06:35 PM
Stop users from accessing "Protection" option from "Tools" menu I Believe Excel Programming 2 December 19th 05 02:44 PM
save and restore "Workbook Menu Bar" & "Cell" menus Jeff Higgins Excel Programming 2 February 14th 05 01:33 AM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"