P
Prashanth KR
Hi,
How do I protect a workbook having a number of sheets (around 50) allowing
the user to add a comment. I tried this with the following macro:
Sub Protect()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="Protect"
Next ws
End Sub
But it would not allow me to add a "Comment" in the unprotected cells.
Kindly help me to create a macro so that I can protect all sheets at one shot
and also allow users to add comments in the unprotected cells.
Please also note that Iam very new to VBA.
Your help is much appreciated,
Prashanth KR
How do I protect a workbook having a number of sheets (around 50) allowing
the user to add a comment. I tried this with the following macro:
Sub Protect()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="Protect"
Next ws
End Sub
But it would not allow me to add a "Comment" in the unprotected cells.
Kindly help me to create a macro so that I can protect all sheets at one shot
and also allow users to add comments in the unprotected cells.
Please also note that Iam very new to VBA.
Your help is much appreciated,
Prashanth KR