Dear All,
I am trying to unprotect certain parts of a workbook. I would have thought that the following would work but no luck :-
I get "object does not support this property or method":-
I am trying to unprotect certain parts of a workbook. I would have thought that the following would work but no luck :-
I get "object does not support this property or method":-
Rich (BB code):
Invoicing_Tool.Sheets("Job List").Protect
'Big jobs
For j = 5 To 19
If Len(Invoicing_Tool.Sheets("Job List").Range("B" & j).Value) = 0 Then
'unprotect ranges
Set range_to_unprotect = Invoicing_Tool.Sheets("Job List").Range("B" & j & ":F" & j)
range_to_unprotect.Unprotect
Set range_to_unprotect = Invoicing_Tool.Sheets("Job List").Range("H" & j)
range_to_unprotect.Unprotect
Set range_to_unprotect = Invoicing_Tool.Sheets("Job List").Range("j" & j * ":W" & j)
range_to_unprotect.Unprotect
End If
Next j