+ Reply to Thread
Results 1 to 14 of 14

Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Hi, I am new to Excel Macros and am encountering an issue:

    I have a workbook with 5 worksheets and it is implementing an Expense Workflow Process.

    After the Initiaor submits the request, 1 of the sheet "Expense Form" is locked for editing. This is working fine.

    Please Login or Register  to view this content.
    The User has a new requirement. Incase of rejection of this request, the Initiator should be able to edit this worksheet. So I put the following sub code in the Reject button:

    Please Login or Register  to view this content.
    But I am getting an error:

    "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Appreciate any inputs as this will be of great help.

    Thanks


    Moderator Edit:

    Welcome to the forum, NigelDeNoronha.

    Please notice that code tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 09-16-2012 at 07:31 AM. Reason: Added code tags

  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: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    I see no obvious error in your code. It sounds like the error message is indicating the problem it has encountered. There is some non-obvious difference between the current protection password and the string in the cell you are referencing.
    _________________
    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 Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Mr. NigelDeNoronha.

    Upload your file for testing.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    your third line should be
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Thanks a lot JP and all.. It was an issue with the assignment.

    Just 1 more assistance please

    I am trying to unlock the entire sheet and then lock a section of that sheet. But it gives me the mssg "Unable to set the locked property of the Range Class"

    Please Login or Register  to view this content.

    I am sorry that I am asking too much but am really new to excel.

    Thanks once again
    Last edited by JBeaucaire; 09-17-2012 at 08:32 AM.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    where does the error occur? are you sure the sheet has been unlocked? (your code as posted would not run)

  7. #7
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    @JP,

    If I remove the [Worksheets("Expense Form").Range("B15:C20").Locked = True]
    line from the code, it works fine. When I reopen the sheet, it is unlocked but some cells need to locked.

    Just for info, If I put a .Select property before .Locked line of code, it gives me error "Select Method of Range Class failed".

    Thanks

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    are any of those cells merged? if you check the worksheet when the error occurs is it actually unprotected?

  9. #9
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Dear JP it seems to me that it only affects those cells that have a formula on them
    If I lock a range of cells without any formulas, then it locks these cells
    Do you think this could be the issue?

    Thanks once again

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    the contents of the cells shouldn't make any difference unless perhaps you have some other code interfering. can you post a sample workbook?

  11. #11
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Dear JP,
    I have attached the file.

    There are 5 sheets in this workbook, most importantly, Cover and Expense Form.
    Developer password: 171973
    Sheets password : Lonela

    Process:
    1)Open Excel file , go to Cover Sheet.
    Employee Full Name: Tamer Taha
    At this stage, most of Expense form is editable
    Put some comments in Requester Comments and Send Request.
    This will lock the Expense Form.

    2)Reopen Sheet, On Cover Sheet:
    Put in some comments in Reasons for Rejection and Reject.
    This should reset the Status and unlock most of Expense Form Sheet except fields in Green

    Please let me know incase you need more info.

    Thanks a lott JP
    Attached Files Attached Files

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    remember when I asked about merged cells? you have merged cells in the range you are unlocking so you have to include all the merged area which means using B15:D20 not C20

  13. #13
    Registered User
    Join Date
    09-16-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    Thanks a lot JP.. You are wonderful !

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

    Re: Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."

    If that takes care of your need, please select Thread Tools from the menu above and mark the thread as solved. 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