The code below sets the UserInterfaceOnly for Sheet13 when the workbook open.
I have many many sheets that need to be set - some with different passwords. Can I use a listing of worksheet names somewhere that can then be used in an array or something rather than having to type them individually?
DK
Sheet13.Protect , UserInterFaceOnly:=True
With Sheet13
.Protect Password:=[PWGeneralSheets], UserInterFaceOnly:=True, AllowFormattingCells:=True
.EnableSelection = xlUnlockedCells
I have many many sheets that need to be set - some with different passwords. Can I use a listing of worksheet names somewhere that can then be used in an array or something rather than having to type them individually?
DK
Sheet13.Protect , UserInterFaceOnly:=True
With Sheet13
.Protect Password:=[PWGeneralSheets], UserInterFaceOnly:=True, AllowFormattingCells:=True
.EnableSelection = xlUnlockedCells