Results 1 to 14 of 14

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

Threaded View

  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.

    Worksheets("Expense Form").Unprotect Password:=Worksheets("cover").Range("AZ1").Value
    Worksheets("Expense Form").Range("A1:BB1000").Locked = True
    Worksheets("Expense Form").Protect Password = Worksheets("cover").Range("AZ1").Value, DrawingObjects:=True, Contents:=True, Scenarios:=True 
        , AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=False
    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:

    Worksheets("Expense Form").Unprotect Password:=Worksheets("cover").Range("AZ1").Value
    Worksheets("Expense Form").Range("A1:BB1000").Locked = False
    Worksheets("Expense Form").Protect Password = Worksheets("cover").Range("AZ1").Value, DrawingObjects:=True, Contents:=True, Scenarios:=True , AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=False
    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

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