Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 2

fsfsd

Worksheets
assword:="Password", _

dfsd

heets are protected")


Private Sub Workbook_Open()
Dim wSheet As Worksheet

For Each wSheet In Worksheets


wSheet.Protect Password:="Password"
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True, _
UserInterFaceOnly:=True, _
AllowFiltering:=True

Next wSheet
MsgBox ("All worksheets are protected")

End Sub

You might also like