how can I protect each page for multipage on userform ?

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
354
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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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