+ Reply to Thread
Results 1 to 12 of 12

Updating Links from Password protected Workbooks

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Updating Links from Password protected Workbooks

    Hi all
    I'm having a problem with a pivot table I am using and am hoping (praying!!) that someone can help!! There are two worksheets, one that contains the "Raw Data" and one that hosts the pivot table summarising the raw data. The raw data is a series of links from 9 seperate password protected workbooks. When the workbook opens and attempts to update the links it requests the password for each sheet. This cannot work as the passwords need to be unique to the users of each spreadsheet!!

    I am hoping to use a command button to update the links embedding the passwords inside the code, unfortunately I am hitting a brick wall with all I've tried so far! I am using a macro assigned to the command button but my VB script is pretty basic. Any help would be greatly appreciated
    Last edited by rhysaubs; 05-06-2010 at 10:17 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    There is no method I am aware of to provide the password when updating links in code, other than to actually open the workbooks themselves. Is that an option?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Updating Links from Password protected Workbooks

    I've tried to update the links while the sheets are open and still no luck - it's looking like an impossible job!!

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    If you can't update the links when the source workbooks are open, then there is something seriously wrong with your Excel installation. What actually happens when you do that - an error, nothing or what?

  5. #5
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Updating Links from Password protected Workbooks

    Apologies - I didn't explain it very well! I ran a macro to open all workbooks (including the password in the code) then attempted to update the links but it was still requesting the password to the books, so back to square one.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    What was the macro?

  7. #7
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Updating Links from Password protected Workbooks

    I've deleted the original but it was along the lines of

    Workbooks.Open "O:\Service Areas\Vincenzo\2010-11\Team 4\AR.xls", Password:="Myrecord", UpdateLinks:=1 (x9 for the other workbooks)
    ActiveWorkbook.UpdateLink Name:="O:\Service Areas\Vincenzo\2010-11\Team 4\AR.xls", Type:=xlExcelLinks

    The password pop up box then came up!!

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    Do those source workbooks contain links to other files too?

  9. #9
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Updating Links from Password protected Workbooks

    Yes they do, they all link to the same sheet - although that is not password protected.

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    You don't actually need to run UpdateLink if the source is open:
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    05-06-2010
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Updating Links from Password protected Workbooks

    Thanks Romperstomper (awesome film by the way!!), works a treat

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Updating Links from Password protected Workbooks

    Thanks - the film career keeps me busy between posts...

+ Reply to Thread

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