Hi

Please may I ask advice on how to write this code to protect all sheets ...

 For Each ws In ThisWorkbook.Worksheets
   ws.Protect Password:="xx"
   ws.ProtectDrawingObjects = False
   ws.AutoFilter = True
   ws.Contents = True
   ws.Scenarios = True
   
 Next ws
Much appreciated!