I have a timer macro, I need to add my protect workbook macro but can not get it to work. here is both of the codes.
Sub Protect()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="456"
Next ws
ActiveWorkbook.Save
Windows.Application.Quit 'closes wkbk & excel...