Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
I'm searching for VBA code or other means that would prompt for a password
when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
Let me add to this. I create a UserForm which contains a text box for the
password entry. I've also added an "Okay" button. What I would like to happen is when the "Okay" box is clicked it's checks for a specific password that I have stored in a cell on a hidden worksheet and if it matches what's type in the it will accept the password and continue on. "Johnny" wrote: I'm searching for VBA code or other means that would prompt for a password when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
if me.textbox1.text = thisworkbook.worksheets("hidden").range("a1").valu e then
'do the work else msgbox "Not this time, skippy!" end if Johnny wrote: Let me add to this. I create a UserForm which contains a text box for the password entry. I've also added an "Okay" button. What I would like to happen is when the "Okay" box is clicked it's checks for a specific password that I have stored in a cell on a hidden worksheet and if it matches what's type in the it will accept the password and continue on. "Johnny" wrote: I'm searching for VBA code or other means that would prompt for a password when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
Fantastic! It worked.
"Dave Peterson" wrote: if me.textbox1.text = thisworkbook.worksheets("hidden").range("a1").valu e then 'do the work else msgbox "Not this time, skippy!" end if Johnny wrote: Let me add to this. I create a UserForm which contains a text box for the password entry. I've also added an "Okay" button. What I would like to happen is when the "Okay" box is clicked it's checks for a specific password that I have stored in a cell on a hidden worksheet and if it matches what's type in the it will accept the password and continue on. "Johnny" wrote: I'm searching for VBA code or other means that would prompt for a password when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. -- Dave Peterson |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
I have a follow up question. On the userform, how do I get the cursor to
appear in textbox1 when it loads? "Johnny" wrote: Fantastic! It worked. "Dave Peterson" wrote: if me.textbox1.text = thisworkbook.worksheets("hidden").range("a1").valu e then 'do the work else msgbox "Not this time, skippy!" end if Johnny wrote: Let me add to this. I create a UserForm which contains a text box for the password entry. I've also added an "Okay" button. What I would like to happen is when the "Okay" box is clicked it's checks for a specific password that I have stored in a cell on a hidden worksheet and if it matches what's type in the it will accept the password and continue on. "Johnny" wrote: I'm searching for VBA code or other means that would prompt for a password when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. -- Dave Peterson |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password when Check Box is checked
Option Explicit
Private Sub UserForm_Initialize() Me.TextBox1.SetFocus End Sub Johnny wrote: I have a follow up question. On the userform, how do I get the cursor to appear in textbox1 when it loads? "Johnny" wrote: Fantastic! It worked. "Dave Peterson" wrote: if me.textbox1.text = thisworkbook.worksheets("hidden").range("a1").valu e then 'do the work else msgbox "Not this time, skippy!" end if Johnny wrote: Let me add to this. I create a UserForm which contains a text box for the password entry. I've also added an "Okay" button. What I would like to happen is when the "Okay" box is clicked it's checks for a specific password that I have stored in a cell on a hidden worksheet and if it matches what's type in the it will accept the password and continue on. "Johnny" wrote: I'm searching for VBA code or other means that would prompt for a password when a check box is checked. I'm not a VBA wiz kid so please be gentle if this is a stupid question. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sum of check boxes that have been checked | Excel Worksheet Functions | |||
I need a pop up message when a check box is checked | Excel Discussion (Misc queries) | |||
Check box so that only one box can be checked a time | Excel Discussion (Misc queries) | |||
Print when check box checked | Excel Worksheet Functions | |||
How do I get a Check Box to set a value in a cell when is checked. | Excel Programming |