
Steven Behr
Member
Members
Power Query
Power Query

Forum Posts: 85
Member Since:
January 30, 2020
January 30, 2020

Hi,
Im wondering, I understand password protections with sheets in VBA.
But I cant seem to understand if there is a VBA FORM password protection. So when a person opens a form that have to use a password to access that form.
If someone can give an example or link that would be great
Steve

Catalin Bombea
Iasi, Romania
Admin

Forum Posts: 1807
Member Since:
November 8, 2013
November 8, 2013

Hi Steven,
You don't need a form password to do that, there is no such thing.
Collect user password with a text inputbox, check it, and if it's correct, display the form:
Pass=Inputbox("Type your password")
If Pass = "MyPassword" Then
userForm1.Show
Else
msgbox "Wrong password!"
End if
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: David, yonatan zelig, Christopher Anderson
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27182
Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —
