Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50178

How to select a sheet while inputbox is displayed

$
0
0
I have a workbook with several worksheets. While an InputBox is being displayed, I want the user to be able to click on another worksheet tab without first clicking the Cancel button on the InputBox. Is there a way to do that?

Here is the present code:

Private Sub Worksheet_Activate()
Dim strPassword As String

Do
strPassword = InputBox(Prompt:="Enter password for Instructions", Title:="Enter Password for Instructions")
If strPassword = "" Then Exit Sub
Loop Until strPassword = "instructions"
End Sub

Viewing all articles
Browse latest Browse all 50178

Trending Articles