+ Reply to Thread
Results 1 to 2 of 2

How to make Workbooks.Open skip password protected files

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Wink How to make Workbooks.Open skip password protected files

    I have the following code, which does what it should but I wanted to add a clause to the last line to ignore all files that are password protected. There are a few hundred files, and pressing cancel on each one is tedious. It is not an option to use the password as an argument, so I am just trying to skip the protected workbooks.

    Please Login or Register  to view this content.
    Last edited by hoffey; 09-24-2009 at 11:01 AM.

  2. #2
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: How to make Workbooks.Open skip password protected files

    I added a blank password and added an "On Error GoTo" to skip over the file open. Works like a charm.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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