VBA selecting multiple sheets
Solved/Closed
Related:
- Select multiple sheets vba
- Vba select case like - Guide
- How to make multiple selections in photoshop - Guide
- Sheets right to left - Guide
- Allow multiple downloads chrome - Guide
- Number to words in excel formula without vba - Guide
2 responses
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Aug 29, 2009 at 07:08 AM
Aug 29, 2009 at 07:08 AM
Try this
Private Sub Workbook_open()
With sheets("Sheet1 name")
.Protect Password:="secret", userinterfaceonly:=True
.EnableOutlining = True
End With
With sheets("Sheet2 name")
.Protect Password:="secret", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub
Private Sub Workbook_open()
With sheets("Sheet1 name")
.Protect Password:="secret", userinterfaceonly:=True
.EnableOutlining = True
End With
With sheets("Sheet2 name")
.Protect Password:="secret", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub