Group:  Microsoft Excel ยป microsoft.public.excel.newusers
Thread: Stopping spreadsheet save

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Stopping spreadsheet save
"John" <John[ at ]nospam.infovis.co.uk> 14.09.2006 14:47:43
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


RE: Stopping spreadsheet save
Allllen 14.09.2006 17:26:02
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:

[Quoted Text]
> 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
>
>
>
Re: Stopping spreadsheet save
"MartinW" <mtmw[ at ]hotmail.invalid> 15.09.2006 08:19:11
Hi John,

You may want to look at Google Spreadsheets. Burgeoning technology
that I'm sure will become a part of many peoples corporate structure.

Just put 'google spreadsheets' into a google search and follow your nose.

HTH
Martin


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net