+ Reply to Thread
Results 1 to 6 of 6

Master workbook linked to multiple password protected files

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    Master workbook linked to multiple password protected files

    I have seen this posted before but I can't seem to find a solution that works so maybe I'm doing it wrong. I have a master workbook that links to 17 password protected files and summarizes the data. When I open the master, I'm prompted to enter a password for every linked file. The password is the same for all. I tried a couple of different VBA codes but I still have the issue upon opening. I want the links to be updated but I don't want to have to enter a password 17 times!

    Here's the one I thought had the most promise but isn't working. Can anybody help?

    Private Sub Workbook_Open()
    Dim PWord As String
    PWord = "password"
    SendKeys PWord & "{Enter}"
    ActiveWorkbook.UpdateLink Name:="filename.xlsm", Type:=xlExcelLinks
    End Sub

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Master workbook linked to multiple password protected files

    Possibly using...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-10-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    Re: Master workbook linked to multiple password protected files

    That didn't work but it's possible I'm putting it in the wrong place....I'm adding it to modules under thisworkbook but I have two now that I've tried. Are they potentially conflicting?

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Master workbook linked to multiple password protected files

    Try putting this in the Thisworkbook code module, save and close the file and then reopen it. It should bring up a file dialog where you can pick all the files to update.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-10-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    Re: Master workbook linked to multiple password protected files

    Sorry for this next questions as I'm very new to VB...
    Am I supposed to replace V with my master file name?
    ....And vfile with each of the 17 feeder files?
    At which instance?

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Master workbook linked to multiple password protected files

    No, the code should be in the master file. When you open that file, the subroutine runs, and it will display a built in user interface for selecting the files you want to process. Once you make the selections, it will open each selected file, update the links and then close the file, repeating the process for every file you selected.

+ 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] Help! Problem using Indirect function to update master workbook from linked files
    By treetrunk in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 06-13-2014, 05:47 AM
  2. Password Protected workbook linked to cell range
    By Rawriquez in forum Excel General
    Replies: 0
    Last Post: 01-22-2014, 10:19 AM
  3. Replies: 1
    Last Post: 04-12-2012, 03:42 AM
  4. Replies: 2
    Last Post: 02-06-2011, 06:45 AM
  5. Copy a range and paste into another workbook - files are password protected.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2008, 06:57 AM
  6. [SOLVED] How do I link password protected files to a master spreadsheet?
    By Laurie M. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2006, 05:55 PM
  7. Replies: 2
    Last Post: 03-30-2005, 09:06 AM

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