Greetings,
I'm trying to have two VBA statements run with 1 command button in my excel workbook. is that possible? I'm VERY new to VBA and macro's and I do not have a reference book handy at the moment. any tips would be grateful!
Sub Enable_events()
Application.EnableEvents = True
End Sub
Private Sub CommandButton1_Click()
'Protect worksheet with a password
Sheets("Cover").Protect Password:="SPPF"
End If
Sub Unhide_Multiple_Sheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
End Sub
I'm trying to have two VBA statements run with 1 command button in my excel workbook. is that possible? I'm VERY new to VBA and macro's and I do not have a reference book handy at the moment. any tips would be grateful!
Sub Enable_events()
Application.EnableEvents = True
End Sub
Private Sub CommandButton1_Click()
'Protect worksheet with a password
Sheets("Cover").Protect Password:="SPPF"
End If
Sub Unhide_Multiple_Sheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
End Sub