Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Question about Protecting a Workbook

Excel 2000
Windows 2k Pro

Is there a level of protection that I can set whereby a user can edit/change
a workbook all they want EXCEPT that they can't save it?

TIA.

-gk-


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Question about Protecting a Workbook

No. You can throw up some roadblocks using VBA, but they're easily
defeated by anyone with enough savvy to read these newsgroups.

Saving the file as Read-Only (Save As/Options) at least forces them
to use a different name (but doesn't prevent them from doing a
SaveAs, then changing the name back.


In article ,
"TBA" wrote:

Excel 2000
Windows 2k Pro

Is there a level of protection that I can set whereby a user can edit/change
a workbook all they want EXCEPT that they can't save it?

TIA.

-gk-

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Question about Protecting a Workbook

you could use something like this to ask for a password before the workbook
is saved, but this can be defeated easily if someone knows much about excel

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
'must lock VBA project so you can't see the password in it
'Input box to verify password before saving
'put in this workbook module
Dim myPassword As String
myPassword = InputBox(prompt:="Please enter the password to proceed:", _
Title:="Password is required to save this file.")
'change password to what you want
If myPassword < "123" Then
MsgBox prompt:="Click OK to return to the workbook.", _
Title:="Correct password not entered", _
Buttons:=16
Cancel = True
Else
End If
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"TBA" wrote in message
...
Excel 2000
Windows 2k Pro

Is there a level of protection that I can set whereby a user can

edit/change
a workbook all they want EXCEPT that they can't save it?

TIA.

-gk-




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
H E L P * * * Need help with question about protecting a range of cell in workbook Blacksmith[_2_] Excel Discussion (Misc queries) 1 August 27th 07 04:13 PM
H E L P * * * Need help with question about protecting a range of cell in workbook Blacksmith[_2_] Setting up and Configuration of Excel 1 August 27th 07 04:13 PM
H E L P * * * Need help with question about protecting a range of cell in workbook news.microsoft.com[_3_] Excel Discussion (Misc queries) 0 August 27th 07 03:56 PM
H E L P * * * Need help with question about protecting a range of cell in workbook news.microsoft.com[_3_] Setting up and Configuration of Excel 0 August 27th 07 03:56 PM
H E L P * * * Need help with question about protecting a range of cell in workbook news.microsoft.com[_3_] Setting up and Configuration of Excel 0 August 27th 07 03:55 PM


All times are GMT +1. The time now is 04:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"