how can I protect each page for multipage on userform ?

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
382
Office Version
  1. 2016
Platform
  1. Windows
Hello

Can I protect for each page for multipage on userform ? I want like when open userform should show form contains the user and password , but in this case I want when open the userform and move from page to another should show the form contents the user and password if the user, password are right , then should show contents the page ,if it's wrong then should keep the form contains user and password. after three tries to enter the page then should close the whole file excel if the user and password are wrong .
thanks in advanced .
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
try it , put it in commandbutton
VBA Code:
Dim answer As Integer, Y As String
Y = InputBox("password required")
If Y = "123" Then
Me.MultiPage1.Value = 1
If answer = vbYes Then
Me.MultiPage1.Value = 1

End If

      Else
      MsgBox "wrong pass"
    End If
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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