Hi, how can i add a condition to allow conditional formatting of cells as True but normal formatting as False
, AllowFormattingCells:=False _
, AllowFormattingCells:=False _
Code:
Public Sub protectSheet(ByRef wks As Worksheet, ByVal strPW_Wks As String)
wks.Protect _
Password:=strPW_Wks _
, DrawingObjects:=True _
, Contents:=True _
, Scenarios:=True _
, UserInterfaceOnly:=True _
, AllowFormattingCells:=True _
, AllowFormattingColumns:=True _
, AllowFormattingRows:=True _
, AllowInsertingColumns:=False _
, AllowInsertingRows:=False _
, AllowInsertingHyperlinks:=False _
, AllowDeletingColumns:=False _
, AllowDeletingRows:=False _
, AllowSorting:=True _
, AllowFiltering:=True _
, AllowUsingPivotTables:=False
End Sub