+ Reply to Thread
Results 1 to 1 of 1

Extracting data from password protected worksheet that has linked password protected data

  1. #1
    Registered User
    Join Date
    05-19-2014
    Posts
    1

    Extracting data from password protected worksheet that has linked password protected data

    Hi Guys!

    Thank you for this wonderful site--this site has been super helpful for many code problems I've run into in the past.

    I'm trying to extract data from a password-protected workbook that also has links to data from a second password-protected workbook. I know the passwords for both workbooks, and both passwords are the same. I see two ways to perhaps do this, but I can't figure out how to enter a password for either way...

    The first way is to do something like this:
    Workbooks.Open Filename:=C:\PATH\ProtectedWorkbook.xlsm, Password:="Password"

    Then, I'd want to extract data directly from the opened workbook. However, after the ProtectedWorkbook.xlsm document opens with the correct password entered, it prompts for the second password to the linked password-protected data. I've tried to open the second document first and input the password, but when the main document (Protectedworkbook.xlsm) is opened afterwards, it still asks for the second workbook's password. Is there a way to input both passwords when Protectedworkbook.xlsm is opened?

    The other way I've Googled about is to do something like this:

    Please Login or Register  to view this content.
    This uses the looked up CELL value (e.g. "A2" or "B7") from the "Lookup" sheet and uses it to find the corresponding cell value within ProtectedWorkbook.xlsm's Sheet1. Then it places the looked-up value into the "Value" sheet. The Lookup sheet and Value sheet are in a different workbook than ProtectedWorkbook.xlsm. This also asks for the password of the ProtectedWorkbook.xlsm file (but not the second workbook's password). I'm not sure how to automate its entry as I have a few hundred values to grab.... Is there a simple way to add the password into this code?

    I've heard of Indirect.EXE, but I think it might be best if I could use a VBA code to open the workbook and extract or grab values somehow..

    Any help would be greatly appreciated!

    Thanks!
    Last edited by JBeaucaire; 05-20-2014 at 12:56 AM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

+ 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. Password Protected workbook linked to cell range
    By Rawriquez in forum Excel General
    Replies: 0
    Last Post: 01-22-2014, 10:19 AM
  2. VBA to get password protected web page data
    By sixthscroll in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2013, 07:43 PM
  3. getting data from a password protected database
    By adnan buran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2007, 09:15 AM
  4. Sorting data in password protected sheet
    By excelRookie06 in forum Excel General
    Replies: 8
    Last Post: 12-14-2006, 07:50 PM
  5. [SOLVED] How do I unlock a protected worksheet:password protected
    By Terry Swift in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2005, 09:05 PM

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