Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Florence,
See the ProtectSharing method in VBA help. --- Regards, Norman "Florence" wrote in message ... Thx Norman, It's understood. So I'm thinking of cancelation before entering into the loop and share it again before leaving the loop. I found an "ActiveWorkbook.SharedWorkspace" command for sharing workspace. Is there any similiar method that can enable & disable workbook sharing? Regards, Florence "Norman Jones" wrote: Hi Florence, See Limitations of shared workbooks' in Excel help. Specifically, this article indicates that shared workbooks will not allow the application or removal of sheet protection passwords. --- Regards, Norman "Florence" wrote in message ... Dear all, I have the following scripts that assign value & validate for specific column: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 20 Then Sheet1.Unprotect "password" If Len(Target.Value) = 0 Then With Target(1, 0) .Value = Cells(Target.Row, Target.Column - 7) With .Validation .......... End With End With End If ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _ False, AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:= _ True Sheet1.Protect "password", , , , , , , , , , , , , True, True, True End If It's working properly in exclusive mode but failed when sharing the workbook (Set it under the "Tools" manual). Much appreciate for your any idea!! Thanks in advance! Florence |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect/unprotect ALL worksheets in workbook ? | Excel Discussion (Misc queries) | |||
Unprotect a Shared Workbook - Option is Greyed Out | Excel Discussion (Misc queries) | |||
Protect/Unprotect workbook | Excel Discussion (Misc queries) | |||
Protect/Unprotect ALL and/or SPECIFIED Worksheets in Workbook | Excel Programming |