Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
YB YB is offline
external usenet poster
 
Posts: 5
Default Restricting save ability of an excel file

Hi there,
I'd like to give access to a wide range of users to an excel file.
They should have all the usual rights to use the excel file except that they
should not be able to save the file on their computer or elsewhere. This
file would and should only remain on a server and never save else where by
common users.
Is there a simple method to unable the save or save as ability of an excel
file ?
Thanks,
YB


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Restricting save ability of an excel file

I'm not 100% sure but try this go to the workbook module
on visual basic editor and put in this code:-

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

please note that the cancel... line should be included in
the top line of code

I hope that works

Stewart Walker
-----Original Message-----
Hi there,
I'd like to give access to a wide range of users to an

excel file.
They should have all the usual rights to use the excel

file except that they
should not be able to save the file on their computer or

elsewhere. This
file would and should only remain on a server and never

save else where by
common users.
Is there a simple method to unable the save or save as

ability of an excel
file ?
Thanks,
YB


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Restricting save ability of an excel file


Add following in the code module for thisworkbook...


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

user's can of course circumvent this by disabling events or macro's
but in most cases it will do nicely.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"YB" wrote:

Hi there,
I'd like to give access to a wide range of users to an excel file.
They should have all the usual rights to use the excel file except
that they should not be able to save the file on their computer or
elsewhere. This file would and should only remain on a server and
never save else where by common users.
Is there a simple method to unable the save or save as ability of an
excel file ?
Thanks,
YB




  #4   Report Post  
Posted to microsoft.public.excel.programming
YB YB is offline
external usenet poster
 
Posts: 5
Default Unabling Automatically Macros at opening ?

Hi,
Does anybody know how to unable automatically the macro at the opening of an
excel file? The macro would be unabled without prompting the user. But also
wihout changing the security level of the macro menu.

Or alternatively, automatically cancel the opening of file if the user
choose to disable the macro?

Thanks
YB


"keepitcool" wrote in message
...

Add following in the code module for thisworkbook...


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

user's can of course circumvent this by disabling events or macro's
but in most cases it will do nicely.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"YB" wrote:

Hi there,
I'd like to give access to a wide range of users to an excel file.
They should have all the usual rights to use the excel file except
that they should not be able to save the file on their computer or
elsewhere. This file would and should only remain on a server and
never save else where by common users.
Is there a simple method to unable the save or save as ability of an
excel file ?
Thanks,
YB






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Unabling Automatically Macros at opening ?

search google. tons of posts on that.

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"YB" wrote:

Hi,
Does anybody know how to unable automatically the macro at the opening
of an excel file? The macro would be unabled without prompting the
user. But also wihout changing the security level of the macro menu.

Or alternatively, automatically cancel the opening of file if the user
choose to disable the macro?

Thanks
YB



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unabling Automatically Macros at opening ?

The user gets control over turning on macros and the code canno
directly change this- it is a security measure to stop viruses.

All you can do is hide all sheets except for a front sheet which say
"You must enable macros to use this workbook". The structure of th
workbook is then protected so users cannot get at the data.

You then have macros triggered by the workbook open event that unhid
the hidden sheets so the spreadsheet can only be used with macro
enabled.

Dunca

--
Message posted from http://www.ExcelForum.com

  #7   Report Post  
Posted to microsoft.public.excel.programming
YB YB is offline
external usenet poster
 
Posts: 5
Default Unabling Automatically Macros at opening ?

very smart !!
Thanks, I will use it
YB

"DNF Karran " wrote in message
...
The user gets control over turning on macros and the code cannot
directly change this- it is a security measure to stop viruses.

All you can do is hide all sheets except for a front sheet which says
"You must enable macros to use this workbook". The structure of the
workbook is then protected so users cannot get at the data.

You then have macros triggered by the workbook open event that unhide
the hidden sheets so the spreadsheet can only be used with macros
enabled.

Duncan


---
Message posted from http://www.ExcelForum.com/



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
Restricting rights to save a spreadsheet GeneR Excel Worksheet Functions 3 November 18th 06 11:50 PM
is it possible to disable the ability to save a file unless the u. AucklandAssault Excel Discussion (Misc queries) 2 November 8th 06 08:52 PM
Restricting a Spreadsheet so users cannot save changes GeneR Excel Worksheet Functions 1 October 31st 06 09:16 PM
provide ability to undo a save - saved by mistake bambam Excel Worksheet Functions 1 July 27th 05 04:32 PM
Time restricting a file Fernandoalberte Excel Discussion (Misc queries) 5 June 22nd 05 12:41 AM


All times are GMT +1. The time now is 05:15 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"