Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Locking worksheets

I am using Excel 2003 and would like to lock a worksheet, other than a check
box or button, such that the remainder of the sheet cannot be interacted with
(but can be viewed) until the check box or button has been clicked.

Any help greatly appreciated. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Locking worksheets

Hi,

Maybe something like this would help. It will act as a toggle between being
protected and not. Add a button to the sheet and asign it to the macro
below.

Sub Button1_Click()
With ActiveSheet
If .ProtectContents = True Then
.Unprotect "password"
.EnableSelection = xlNoRestrictions
Else
.Protect "password"
.EnableSelection = xlNoSelection
End If
End With
End Sub

--
Hope that helps.

Vergel Adriano


"slim4921" wrote:

I am using Excel 2003 and would like to lock a worksheet, other than a check
box or button, such that the remainder of the sheet cannot be interacted with
(but can be viewed) until the check box or button has been clicked.

Any help greatly appreciated. Thanks

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
Locking data between worksheets mamorellana Excel Worksheet Functions 0 June 22nd 09 02:58 PM
Locking Worksheets, Copy and Paste Question Philip Excel Worksheet Functions 3 June 10th 09 03:09 AM
locking and unlocking worksheets adam Excel Worksheet Functions 6 October 31st 07 05:31 PM
Locking Cells or worksheets Steve Excel Worksheet Functions 4 January 18th 07 06:47 PM
Locking down worksheets Toby Excel Discussion (Misc queries) 1 June 24th 05 09:42 PM


All times are GMT +1. The time now is 09:38 PM.

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"