Not sure if im doing this right as this is my first attempt at a case statement. Every other time have planned on doing one have found another way around the problem.
Heres what i have.
Private Sub Workbook_Open()
MY_PASS = InputBox("Please enter the password", "PASSWORD PROTECTED")
Select Case MY_PASS
Case April: Worksheets("DELI").Select
Case ValP: Worksheets("Bulkfoods").Select
Case Nathan: Worksheets("Grocery").Select
End Select
End Sub
It doesnt work though.
Heres what i have.
Private Sub Workbook_Open()
MY_PASS = InputBox("Please enter the password", "PASSWORD PROTECTED")
Select Case MY_PASS
Case April: Worksheets("DELI").Select
Case ValP: Worksheets("Bulkfoods").Select
Case Nathan: Worksheets("Grocery").Select
End Select
End Sub
It doesnt work though.