Microsoft Office Forums


Reply
Thread Tools Display Modes

Disabling users from Save / SaveAs

 
 
Skygod
Guest
Posts: n/a

 
      02-09-2010, 02:46 AM
We extract data from a MySQL database which involves a large number of
lookups from two pivot tables and a flatfile table. There is double testing
for N/A events as well, so recalculation takes a long time.

To avoid this, we write out the data as values into a new spreadsheet, so
that filters can be applied and recalc time is minimal.

We now want to protect the value data from employee 'theft' by disabling
Save and Save As functionality.

I can do this using the following VBA in ThisWorkbook

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "'Company policy prohibits 'Save' and 'Save As' functionality!"
Cancel = True
End Sub

The Catch-22 though is that the master macro that writes the data to the
spreadsheet is no longer able to save either.

My VBA skills are extremely limited, so any simple to follow ideas on how to
accomplish this would be appreciated.


 
Reply With Quote
 
 
 
 
Bob I
Guest
Posts: n/a

 
      02-09-2010, 12:26 PM
Did you also disable "Printscreen"?

Skygod wrote:

> We extract data from a MySQL database which involves a large number of
> lookups from two pivot tables and a flatfile table. There is double testing
> for N/A events as well, so recalculation takes a long time.
>
> To avoid this, we write out the data as values into a new spreadsheet, so
> that filters can be applied and recalc time is minimal.
>
> We now want to protect the value data from employee 'theft' by disabling
> Save and Save As functionality.
>
> I can do this using the following VBA in ThisWorkbook
>
> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
> MsgBox "'Company policy prohibits 'Save' and 'Save As' functionality!"
> Cancel = True
> End Sub
>
> The Catch-22 though is that the master macro that writes the data to the
> spreadsheet is no longer able to save either.
>
> My VBA skills are extremely limited, so any simple to follow ideas on how to
> accomplish this would be appreciated.
>
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent: XDocument.Save() or .SaveAs (JScript) Not supported ISUComSciGuy Infopath Newsgroup 5 12-07-2007 09:53 PM
Disabling users from deleting item in their inbox frank@interconnectnetworks.com Outlook Newsgroup 1 11-03-2006 01:08 PM
Distinguishing between Save and SaveAs in PowerPoint Andrei Smolin PowerPoint Newsgroup 1 05-08-2004 04:33 AM
SaveAs dialogue appears when I put my cursor over the save icon?? Dave F Excel Newsgroup 2 10-21-2003 04:25 PM
Re: Database file Open/Save/SaveAs functionality John Vinson Access Newsgroup 0 09-04-2003 04:16 PM



All times are GMT. The time now is 02:02 PM.