Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Password protection for an individual form

Hi All,

I am creating a menu system within a form, one of the options is
Administration. Once selected this loads a subform with the admin options.

Does anyone now if it is possiable to put password protection on the admin
subform only thus keeping a general user away from the admin options?

Regards and Thanks

Mick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Password protection for an individual form

Hi Mick,

Mort_Komabt wrote:
I am creating a menu system within a form, one of the options is
Administration. Once selected this loads a subform with the admin
options.

Does anyone now if it is possiable to put password protection on the
admin subform only thus keeping a general user away from the admin
options?


If you want to use Windows security (probably the best bet if you can), you
could simply check the username and determine what to do based on that:

MsgBox Environ$("username")

If you want to do your own password prompt, you'll have to create another
form that looks like a logon box (with PasswordChar property set to "*" for
the TextBox the user will type his/her password into). If you do this,
you'll want to lock your VBA project for viewing so that it's harder to get
to the password in your code.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Password protection for an individual form

Thanks for that. Works great

"Jake Marx" wrote:

Hi Mick,

Mort_Komabt wrote:
I am creating a menu system within a form, one of the options is
Administration. Once selected this loads a subform with the admin
options.

Does anyone now if it is possiable to put password protection on the
admin subform only thus keeping a general user away from the admin
options?


If you want to use Windows security (probably the best bet if you can), you
could simply check the username and determine what to do based on that:

MsgBox Environ$("username")

If you want to do your own password prompt, you'll have to create another
form that looks like a logon box (with PasswordChar property set to "*" for
the TextBox the user will type his/her password into). If you do this,
you'll want to lock your VBA project for viewing so that it's harder to get
to the password in your code.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Individual sheet protection in shared workbook Sunil Pradhan[_2_] Excel Worksheet Functions 1 May 16th 10 03:51 AM
Password protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Password Protection for Individual Worksheets ??? Gina M Excel Worksheet Functions 3 September 11th 08 05:31 PM
individual cell protection bill gillan Excel Discussion (Misc queries) 10 March 28th 07 02:05 AM


All times are GMT +1. The time now is 05:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"