Hello,
Very new to VBA. Working off a code that hides worksheets until a password given to open them.
I want to modify this so that it will open more than one sheet...
What I have:
Option Compare Text
Const pWord2 = "XXX"
Sub showsheets2()
Select Case InputBox("Enter Raw Data Password")
Case Is = pWord2
With Worksheets("Raw Data Dashboard")
.Visible = xlSheetVisible
End With
Case Else
MsgBox "Nope! Please enter correct password to see raw data"
End Select
End Sub
How do I make it so another sheet opens at the same time?
Thanks!
Very new to VBA. Working off a code that hides worksheets until a password given to open them.
I want to modify this so that it will open more than one sheet...
What I have:
Option Compare Text
Const pWord2 = "XXX"
Sub showsheets2()
Select Case InputBox("Enter Raw Data Password")
Case Is = pWord2
With Worksheets("Raw Data Dashboard")
.Visible = xlSheetVisible
End With
Case Else
MsgBox "Nope! Please enter correct password to see raw data"
End Select
End Sub
How do I make it so another sheet opens at the same time?
Thanks!