+ Reply to Thread
Results 1 to 3 of 3

VBA Code for password protecting excel workbook

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    usa,nj
    MS-Off Ver
    Excel 2003
    Posts
    1

    VBA Code for password protecting excel workbook

    Hello Everyone,

    Please help me with a vba code that protects the excel workbook and hides the data on the sheet until correct password is entered. So on opening a workbook a input box shld prompt and shlould allow 3 attempts for users to unlock the worksheets, after the 3rd attempt the application should get closed like
    application.quit

    Please help me
    Thanks in Advance

    Kunal

  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: VBA Code for password protecting excel workbook

    I have posted a UserForm example before
    Attached Files Attached Files
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: VBA Code for password protecting excel workbook

    Hey Guys,

    I have had a look at this and am a little confused. I can see it working but not sure how to set it up?

+ 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