English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is it possible to open the form first before opening the my excel file?

I have created a form in excel using its vb, some sort of a welcome form, I want to open the excel file upon entering the loagin Id as "abcd" and password "defg". and pressing the enter command button what code must I write to accomplish this thing?
I know there is a built in function in excel to do this, But I want a vb form!
Please help me a code form has two text boxes for login ID and password, two button for enter and exit.
I also want a message box appear "You have entered invalid password/login id please try again' when enter button is pressed but with incorrect login id or paswword.
what code will i write to:
1. Textboxlogin name fi any,
2. Textbox password if any,
3. exit button,
4. enter button.

Thanks...

2007-12-11 23:10:48 · 4 answers · asked by Sniper_Here 1 in Computers & Internet Software

4 answers

I'm sure it's possible. try the following
1 : Take course note
2 : Read aforementioned notes
3 : Read associated books
4 : Ask tutor if stuck
5 : Do OWN HOMEWORK !

2007-12-11 23:14:27 · answer #1 · answered by stu_the_kilted_scot 7 · 3 0

nicely it relies upon, is that this username and password going to be difficult coded, or have a database back end? If its difficult coded then it may be some thing like deepest sub exit_click go out sub deepest sub login_click if msbox1.text fabric = username then goto userok else goto usernotok endif deepest sub userok if msbox2.text fabric = password then goto passok else goto usernotok endif deepest sub passok code right here that does despite the fact which you love to do if it works deepest sub usernotok msgbox ("Invalid person/bypass") go out sub it is off the right of my head so probable isnt precisely best even with the incontrovertible fact that this is close

2016-12-10 20:37:19 · answer #2 · answered by ? 4 · 0 0

This is a fairly complex thing to do. Please see the source link below.

-Jim

-Jim Gordon
Microsoft Mac MVP

MVPs are independent and do not work for Microsoft
http://mvp.support.microsoft.com/

2007-12-15 05:02:59 · answer #3 · answered by jimgmacmvp 7 · 0 0

contact on kishan@gravitaexim.com

2007-12-11 23:14:56 · answer #4 · answered by sweetu 2 · 0 2

fedest.com, questions and answers