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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

CharlesH

Active Member
Joined
Apr 23, 2005
Messages
467
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
 

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
Awesome!!! Worked like a charm.

Thanks Charles!

This forum has been an unbelievable help!
 

Watch MrExcel Video

Forum statistics

Threads
1,133,575
Messages
5,659,611
Members
418,514
Latest member
radonwilson

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
Top