Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello is it possible to unprotect a worksheet when a certain cell is
selected using VBA . I need to unprotect the worksheet when cell B34 is selected and remain unprotected. thanks in advance |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Enter this routine in the class module of the sheet you wish to unprotect If Target.Cells.Count 1 Then Exit Sub End If If Not Application.Intersect(Range("B34"), Target) Is Nothing Then ActiveSheet.UnProtect end if end sub "Wanna Learn" wrote: Hello is it possible to unprotect a worksheet when a certain cell is selected using VBA . I need to unprotect the worksheet when cell B34 is selected and remain unprotected. thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
unprotect a worksheet | Excel Worksheet Functions | |||
Unprotect Worksheet. | Excel Discussion (Misc queries) | |||
Unprotect a worksheet | New Users to Excel | |||
Unprotect a worksheet | Excel Discussion (Misc queries) | |||
Unprotect worksheet via VBA | Excel Worksheet Functions |