hello there,,
i want to make a userform with some checkboxes, and i want to make a password to enable/disable some check boxes,can't you teach me step by step,so that the userform running good,
i'm sorry for my bad english,,
example Untitled.jpg
hello there,,
i want to make a userform with some checkboxes, and i want to make a password to enable/disable some check boxes,can't you teach me step by step,so that the userform running good,
i'm sorry for my bad english,,
example Untitled.jpg
- jekidi
What have you got so far?implies you have started something. Why not provide us with what you have so that we don't have to do all the work for you?i want to make a userform
If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.
---Keep on Coding in the Free World---
here's the example i'm tryng to adding a password to enable and disable (target,insentif,minus) but not succes.
SHOW HIDE SHEETS with the password.xlsm
can't someone help me..
Hello!
try this:
add this one to your userform:
then to each CheckBox (10,6,14)![]()
Private Sub UserForm_Initialize() CheckBox10.Enabled = False CheckBox6.Enabled = False CheckBox14.Enabled = False End Sub
then to your textbox1![]()
Private Sub CheckBox10_Click() Application.ScreenUpdating = 0 Select Case CheckBox10.Value Case True: Sheets("TARGET").Visible = True Case False: Sheets("TARGET").Visible = xlSheetVeryHidden End Select Application.ScreenUpdating = 1 End Sub Private Sub CheckBox14_Click() Application.ScreenUpdating = 0 Select Case CheckBox14.Value Case True: Sheets("MINUS").Visible = True Case False: Sheets("MINUS").Visible = xlSheetVeryHidden End Select Application.ScreenUpdating = 1 End Sub Private Sub CheckBox6_Click() Application.ScreenUpdating = 0 Select Case CheckBox6.Value Case True: Sheets("INSENTIF").Visible = True Case False: Sheets("INSENTIF").Visible = xlSheetVeryHidden End Select Application.ScreenUpdating = 1 End Sub
hope it will work for you.![]()
Private Sub TextBox1_Change() If TextBox1.Value = "123" Then CheckBox10.Enabled = True If TextBox1.Value = "123" Then CheckBox6.Enabled = True If TextBox1.Value = "123" Then CheckBox14.Enabled = True End Sub
blue
thanks @blue.chio its work, but with my little modification,, but how to add dialogbox if user type the wrong password?
i write thisin![]()
Private Sub TextBox1_Change() If TextBox1.Value = "123" Then CheckBox10.Enabled = True If TextBox1.Value = "123" Then CheckBox6.Enabled = True If TextBox1.Value = "123" Then CheckBox14.Enabled = True End Sub
but if user typing wrong password, i want to add dialog box with cancel and try again how to apply this,, i try to add ELSE option in textbox value, but it says code error![]()
Private Sub CommandButton3_Click()
sorry for my late post, i forgot password for this site LOL![]()
compile error : else without if
Last edited by jekidi; 12-23-2014 at 10:12 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks