View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers,microsoft.public.excel
Allllen Allllen is offline
external usenet poster
 
Posts: 341
Default Stopping spreadsheet save

I would suggest that you would need to do a combination of 2 things.

1) Force users to use macros on your workbook.
There are plenty of other posts on here about how to do that, just search
for them; the general idea is to have one default sheet that comes up if
macros are not used, then all the other sheets in your workbook only get
unhidden if macros are switched on, and you do this within the workbook_open
event procedure.

2) Now that they are forced to use macros, use this code in the workbook
event procedure.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If SaveAsUI Then Cancel = True
End Sub

It stops them bringing up the Save As dialogue box. More info on where to
put that code:
http://www.contextures.com/xlvba01.html#Workbook

--
Allllen


"John" wrote:

Hi



We have a spreadsheet that we share among users by keeping it on a shared
location on server. The problem is that we want everyone to be able to
modify the sheet but we want to stop users making copies of the sheet to
avoid versioning issues. Is there a way to do that?



Thanks



Regards