Hello everyone,
Please look at my attached file for reference.
I've been working on a login and user control panel for a project and I want to do the following:
Assign roles, add new users, deactivate/archive users, and lastly full functionality of the login form.
* So far I have some accomplish. A clear one that I cant figure out is when I click on the drop down to pick the user nothing comes up, so what I've been doing is typing in the username and the password each time. (I changed the background color of the usernames so you guys can try the login.)
*The other thing I need help with is the archiving portion, I will like to remove the name from the users list and place those names in on a different sheet for tracking purposes.
Excel User Login/User Control Panel
-
- 2StarLounger
- Posts: 128
- Joined: 08 Mar 2010, 13:53
- Location: Missouri
Excel User Login/User Control Panel
You do not have the required permissions to view the files attached to this post.
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
-
- Administrator
- Posts: 78478
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Excel User Login/User Control Panel
The RowSource of ComboBox1 on Login_Form is TMS, but that is not a valid range name.
Where do you want to archive users to?
Where do you want to archive users to?
Best wishes,
Hans
Hans
-
- 2StarLounger
- Posts: 128
- Joined: 08 Mar 2010, 13:53
- Location: Missouri
Re: Excel User Login/User Control Panel
On the full workbook I have a sheet "archived" that I'll use to place those names.
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
-
- Administrator
- Posts: 78478
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Excel User Login/User Control Panel
You already have code to find the user on the loginid sheet.
Copy the cells in columns A to E to the archived sheet, then delete those cells (shifting cells up).
Copy the cells in columns A to E to the archived sheet, then delete those cells (shifting cells up).
Best wishes,
Hans
Hans
-
- 2StarLounger
- Posts: 128
- Joined: 08 Mar 2010, 13:53
- Location: Missouri
Re: Excel User Login/User Control Panel
Thank you!
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
-
- 2StarLounger
- Posts: 128
- Joined: 08 Mar 2010, 13:53
- Location: Missouri
Re: Excel User Login/User Control Panel
Hans, I just realized that when I click on a different open workbook it focuses on the login form if the user hasn't logged in.
I tried the following:
On Workbook_Deactivate
On Workbook_Activate
It works if you open a workbook while the login form is showing, but if I click an existing open workbook it doesn't allow it.
I tried the following:
On Workbook_Deactivate
Code: Select all
Login_Form.Hide
Code: Select all
Login_Form.Show
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
-
- Administrator
- Posts: 78478
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 2StarLounger
- Posts: 128
- Joined: 08 Mar 2010, 13:53
- Location: Missouri
Re: Excel User Login/User Control Panel
Thanks, Hans. I'll see what I can do.
I want the users to do everything as usual if they're not using my stuff.
I want the users to do everything as usual if they're not using my stuff.
A wise man once wrote:....Not doing so is a violation of good interface design and a cause of confusion and irritation.
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison