The below code doesn't work. Kindly someone help me to rectify my below VBA code.
Sub Protect_All_Sheets() Dim wSheet As Worksheet For Each wSheet In Worksheets wSheet.Protect Password:="secret", _ UserInterFaceOnly:=True AllowInsertingHyperlinks = True Next wSheet End Sub
Bookmarks