+ Reply to Thread
Results 1 to 5 of 5

Password protect

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Password protect

    Hi,

    I tried to use the existing post to create my own about password but unable to do so.

    Currently I have a Sheets("Main") and a hidden Sheets("Database") with protected password.

    What i wanted to create is a macro position in Sheets("Main") to unhide Sheets("Database") and by doing so it will prompt the user to enter the password in a Input box. How should i do it?

    I have something like this

    Please Login or Register  to view this content.
    I think i screw it up.

    Thank you

    Regards

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Password protect

    I think you want this code added to a button
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste
    To run the Excel VBA code:

    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Password protect

    Thank you. It is wonderful.

  4. #4
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Password protect

    Hi have a look at this

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=380

    Many thanks

    Toonies

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Password protect

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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