Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Lock down a workbook

My code below is designed to lock down my spreadsheet if OptionButton2 is
true. Is there anyway to prevent someone from saving a copy of the file as
well?



Private Sub CommandButton1_Click()

On Error GoTo Termination

If OptionButton1.Value = True Then

bSELCTIONCHANGE = False

Unload UserFormAccess

Call Protection.protect_all_sheets

End If

If OptionButton2.Value = True Then

bSELCTIONCHANGE = True

Unload UserFormAccess
UserFormPassword.Show
End If



GoTo LastLine

Termination:

LastLine:

End Sub
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
Lock workbook QB Excel Discussion (Misc queries) 1 October 30th 09 02:10 PM
lock a workbook until certain cells are filled batmanz Excel Programming 7 April 30th 08 05:47 PM
Lock Workbook Elements Preepared Excel Discussion (Misc queries) 0 November 6th 07 01:15 PM
Lock cells in shared workbook Raj Excel Worksheet Functions 0 December 16th 06 01:51 AM
How do I lock or close t.bars for a workbook? Mr.G[_2_] Excel Programming 11 November 17th 06 11:04 AM


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