+ Reply to Thread
Results 1 to 8 of 8

Password Form with protected sheet

  1. #1
    Registered User
    Join Date
    02-20-2011
    Location
    Kuala Lumpur,Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Password Form with protected sheet

    Dear all,

    im using sample PASSWORD FORM4.xls get from this forum before, i already added some detail on it. but i have some trouble on the formula when i set all sheet protected password.

    existing formula,

    Please Login or Register  to view this content.

    can somebody help me.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Password Form with protected sheet

    1) Move the DIM ws as Worksheet line down into the macro itself, not above it.
    2) What is the problem?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

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

    Re: Password Form with protected sheet

    The position of the Dim ws line will not cause a problem in this code.

    The code merely hides all sheets except a warning sheet, probably based on some sort of password being required, with a maximum of 5 attempts. I can't see where the sheet protection is used, nor what formula you mean.

    The code has been changed considerably. The original doesnot attempt to change values in the sheet because it doesn't store the number of attempts except in the code. If the sheet is protected then you won't be able to change the value without unprotecting it first
    Last edited by royUK; 05-02-2011 at 04:14 AM.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    02-20-2011
    Location
    Kuala Lumpur,Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Password Form with protected sheet

    By default sheet "Splash" not protected by password.
    i need to protect "Splash" to any editing from other user.

    then when i protect this sheet just look fine, the when i want close workbook popup DEBUG from that code.

    how can i add protect code to existing code???

  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 Form with protected sheet

    As I said, you can't chage the value on the sheet without unprotecting it. There's no reason to have anything on that sheet that can cause problems if changed, the original example didn't. You've changed the code to store the count in by the looks of it, hence the problems.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-20-2011
    Location
    Kuala Lumpur,Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Password Form with protected sheet

    here i attach password form 4, i download from u before but i already edit some layout.

    sheet "Splash" i edit as welcome page have login btn and close btn. i want protect this sheet.
    the when i protect this sheet got debug and i dont know where to put your code given.

    2nd, after some user login using their password, how to make focus to their sheet. example sheet "Jeck"

    3rd, i want sheet "jeck" link to others sheet but that user cannot direct click other sheet on tab must use button on their sheet only.

    all scenario i already put on attachment file. i just need solution how to make this excel smarter and secure.
    Attached Files Attached Files
    Last edited by jeck; 05-02-2011 at 02:50 PM. Reason: add some detail.

  7. #7
    Registered User
    Join Date
    02-20-2011
    Location
    Kuala Lumpur,Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Password Form with protected sheet

    Quote Originally Posted by royUK View Post
    As I said, you can't chage the value on the sheet without unprotecting it. There's no reason to have anything on that sheet that can cause problems if changed, the original example didn't. You've changed the code to store the count in by the looks of it, hence the problems.

    Please Login or Register  to view this content.
    thanks royUK. this code work done.

    if possible, can u help me for other problem above?

  8. #8
    Registered User
    Join Date
    02-20-2011
    Location
    Kuala Lumpur,Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Password Form with protected sheet

    Bump no response

+ 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