PC Review


Reply
Thread Tools Rate Thread

Disable save & save as then return message...

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      15th Sep 2006
Hi.

I am looking for a way to either disable or delay a user from saving a
workbook.
I have a lot of people using the workbook and people keep saving it
with a similar name confusing other users as to which is the real
application.

So, I would like to create a message that says the following when they
attempt to choose 'save' or 'save as' from the file menu.

IT IS HIGHLY RECOMMENDED THAT YOU DO NOT SAVE THIS WORKBOOK. IF YOU
HAVE A PROBLEM OR WOULD LIKE TO SAVE YOUR WORK: (1)SELECT THE TAB OF
YOUR WORKSHEET (2) CHOOSE MOVE OR COPY (3) CREATE A COPY (4) UNDER 'TO
BOOK' CHOOSE NEW BOOK. ....THANKYOU.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      15th Sep 2006
You probably want something close to this...(place this in the Thisworkbook
module by right clicking the Excel Icon next to file in the Excel menu and
select view code)

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If MsgBox("Are you sure you want to save?", _
vbYesNo + vbQuestion, _
"Save?") = vbNo Then Cancel = True
End Sub

If you select yes then it saves. If you select no then it does not save.
--
HTH...

Jim Thomlinson


"J.W. Aldridge" wrote:

> Hi.
>
> I am looking for a way to either disable or delay a user from saving a
> workbook.
> I have a lot of people using the workbook and people keep saving it
> with a similar name confusing other users as to which is the real
> application.
>
> So, I would like to create a message that says the following when they
> attempt to choose 'save' or 'save as' from the file menu.
>
> IT IS HIGHLY RECOMMENDED THAT YOU DO NOT SAVE THIS WORKBOOK. IF YOU
> HAVE A PROBLEM OR WOULD LIKE TO SAVE YOUR WORK: (1)SELECT THE TAB OF
> YOUR WORKSHEET (2) CHOOSE MOVE OR COPY (3) CREATE A COPY (4) UNDER 'TO
> BOOK' CHOOSE NEW BOOK. ....THANKYOU.
>
>

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      15th Sep 2006
As well as Jim's advice, you may want to incorporate you own warning into a
routine to make it more easy for the user.
Maybe using .SaveCopyAs .
Also, using a template would mean that the original is never open in the
first place, only a copy. If that is an option.

NickHK

"J.W. Aldridge" <(E-Mail Removed)>
???????:(E-Mail Removed)...
> Hi.
>
> I am looking for a way to either disable or delay a user from saving a
> workbook.
> I have a lot of people using the workbook and people keep saving it
> with a similar name confusing other users as to which is the real
> application.
>
> So, I would like to create a message that says the following when they
> attempt to choose 'save' or 'save as' from the file menu.
>
> IT IS HIGHLY RECOMMENDED THAT YOU DO NOT SAVE THIS WORKBOOK. IF YOU
> HAVE A PROBLEM OR WOULD LIKE TO SAVE YOUR WORK: (1)SELECT THE TAB OF
> YOUR WORKSHEET (2) CHOOSE MOVE OR COPY (3) CREATE A COPY (4) UNDER 'TO
> BOOK' CHOOSE NEW BOOK. ....THANKYOU.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Save, Save As function in emails - Outlook 2003 lesteryeo@gmail.com Microsoft Outlook 5 27th Oct 2007 06:20 PM
Disable message box when trying to save a read only workbook =?Utf-8?B?QVI=?= Microsoft Excel Programming 2 20th Sep 2007 01:52 PM
disable save and saveas from menubar and save via command button =?Utf-8?B?U3RldmUgRQ==?= Microsoft Excel Programming 5 13th Sep 2006 11:51 PM
Disable save, save as, but allow save via command button =?Utf-8?B?VGltTg==?= Microsoft Excel Programming 10 1st Sep 2006 07:05 PM
redirect or disable save button or file>save Microsoft Outlook VBA Programming 6 11th Mar 2004 03:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.