Can A Userform Multipage layout have one password protected tab? If so, how?

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
Good afternoon!

Is it possible to have just a single tab in a multipage userform password protected?

I have 6 tabs and want only the 6th tab (left to right) protected. When the user clicks on the tab, I was hoping to launch a password request form to proceed to that page of the multipage userform. Is this functionality possible????

If so, I'm anxious to know how this magic trick is performed!

THANKS FOR ALL OF YOUR HELP IN ADVANCE!!
Phil
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,

This is one method. It's crude but it works. Maybe some one can refine it.

Code:
Private Sub MultiPage1_Change()
Application.ScreenUpdating = False
Dim myPW As String
myPW = "test"
Dim myans As String
If UserForm1.MultiPage1.Value = 6 Then
    myans = InputBox(prompt:="Enter Password")
    If myans <> myPW Then
         MsgBox "Sorry incorect Password"
        UserForm1.MultiPage1.Value = 0
        Unload UserForm1
        UserForm1.Show
    End If
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top