+ Reply to Thread
Results 1 to 5 of 5

Access Hidden Worksheet With A Password

  1. #1
    Registered User
    Join Date
    10-28-2011
    Location
    Staffordshire
    MS-Off Ver
    Excel 2003
    Posts
    21

    Access Hidden Worksheet With A Password

    Hi Folks, i have a workbook with 2 sheets 1st named Form 2nd named Database, i have hidden from view worksheet 2 ( Database ).
    Sheet 1 ( Form ) is a user form that sends data to sheet 2 ( Database ).
    Is there a way that i can create a command button in the Userform that allows only users to access sheet 2 ( Database ) with a password and then closes back to being hidden again.

    Regards Chris
    Last edited by Paul; 11-03-2011 at 03:20 PM. Reason: Removed code tags. Unnecessary.

  2. #2
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Access Hidden Worksheet With A Password

    If this is possible there is a problem with the user will be able to find the password by just editing macros
    Last edited by Paul; 11-03-2011 at 03:21 PM. Reason: Removed quote of entire previous post. Unnecessary.

  3. #3
    Registered User
    Join Date
    10-28-2011
    Location
    Staffordshire
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Access Hidden Worksheet With A Password

    thats fine i dont think that they have the skills to be able to edit macros, regards chris

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Access Hidden Worksheet With A Password

    You could probably put two command buttons on the sheet/form and use the following code (adjust as needed):
    Please Login or Register  to view this content.
    Then, so users cannot simply open the VB Editor and see your code (and password), in the VB Editor (ALT+F11) go to Tools - VBAProject Properties - Protection tab and select 'Lock project for viewing' and set a password.

    Don't forget this password!

  5. #5
    Registered User
    Join Date
    10-28-2011
    Location
    Staffordshire
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Access Hidden Worksheet With A Password

    Already sussed that part many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1