+ Reply to Thread
Results 1 to 2 of 2

Open WB as read only. But give runtime error 1004 password supplied is not correct

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Open WB as read only. But give runtime error 1004 password supplied is not correct

    I've written a VBA that opens a .xlsm Workbook. In the workbook, at least 1 worksheet is password protected.

    Please Login or Register  to view this content.
    The file did opens up, however it's giving me an error message (which is on the same line where it opens up the file). Below is the message.

    Please Login or Register  to view this content.
    My question is what exactly is the cause of this error?

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Open WB as read only. But give runtime error 1004 password supplied is not correct

    Hello dluhut,

    Please attach a sample of that Workbook with the Password/s for any protected Sheet/s.

    Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Workbooks.Open method and runtime error 1004 - "file couldn't be found".
    By PHBlaz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2014, 02:10 PM
  2. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  3. SaveCopyAs Runtime Error 1004 - save a backup without altering open file
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2013, 08:11 PM
  4. Error: "The password you supplied is incorrect.Verify the CAPS LOCK key is off..."
    By NigelDeNoronha in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-17-2012, 09:56 PM
  5. Correct password not being read in a userform
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 02:43 PM
  6. Runtime error? Give me a brake!
    By The-Kid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2006, 06:08 PM
  7. how do i give password to open for Excel File?
    By SWATI GAMBHIR in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 05:06 AM
  8. [SOLVED] How do I make a file read only unless a password is supplied?
    By Tim in forum Excel General
    Replies: 2
    Last Post: 01-12-2005, 07:06 PM

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