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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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