Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Restricting rights to save a spreadsheet | Excel Worksheet Functions | |||
is it possible to disable the ability to save a file unless the u. | Excel Discussion (Misc queries) | |||
Restricting a Spreadsheet so users cannot save changes | Excel Worksheet Functions | |||
provide ability to undo a save - saved by mistake | Excel Worksheet Functions | |||
Time restricting a file | Excel Discussion (Misc queries) |