How to detect protected sheet
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Directly from VBA help on ProtectContents Property
If Worksheets("Sheet1").ProtectContents = True Then
MsgBox "The contents of Sheet1 are protected."
End If
Thanks Gord. I looked at this after Gary's Student pointed me this way. It's
easy when you know what keywords to look for. I'd searched for "Protect" and
ProtectionMode sounded the most likely....
.....but wasn't
--
Ian
--
|