+ Reply to Thread
Results 1 to 11 of 11

Problem with file Links

  1. #1
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Problem with file Links

    I have company-wide budget model that pulls department budget from each of their password protected files. When I open the company-wide budget model, it asks me to "Update" or "Don't Update", if I click Update, it asks me for the password for all 16 department passwords. That's a pain.

    My question is if I click "Don't Update", and work for now, the first time I calculate the model, will it ask me for all the passwords? In other words, do I either have to enter all 16 passwords at some point manually or put them all in a macro?

    Thanks,
    RR

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Problem with file Links

    You can code them into the macro, as long as your workbook containing the macro is secure.

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with file Links

    I take it that you are on a company network. If you have a secure personal folder on the network that you are the only one with both READ and WRITE privileges could you have those who supply you with data, save an unprotected copy to your secure folder location. Your network manager could set this up for you I'm sure. This would solve two problems....no passwords....no changing links.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Re: Problem with file Links

    Quote Originally Posted by natefarm View Post
    You can code them into the macro, as long as your workbook containing the macro is secure.

    Please Login or Register  to view this content.
    In your code, do I assume correctly that the "yourfile.xlsx" code is the name of the file that my Company-Wide Budget file is reading data from the the "pwd" is password that my model is asking for on the source file? Assuming that's correct, if I have 16 department I can stack the code 16 adjacent rows high?

    Thanks for your help.
    RR

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Problem with file Links

    Yes, if that's what you need.

  6. #6
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Re: Problem with file Links

    Does your code actually open all 16 of the source workbooks or just allow the consolidating budget workbook access the amounts and remain current? As well, when I open the consolidating budget workbook, it asks if I want to "Update" or "Don't Update". If I click "Don't Update" will all the cells the reference an external source workbook (all of which are on a network server) calculate with the current amounts?

    Thanks,
    RR

  7. #7
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Problem with file Links

    I've apparently misunderstood your question all along. I'm getting it now, that your consolidated workbook has formulas that pull data from the other password-protected workbooks. Unfortunately, it appears that even if you put code in the Open event of your consolidated workbook, the event doesn't fire until it has tried to update the links to external data sources. Newdoverman apparently new what you were talking about, so something like he suggested may be needed.

    Perhaps a better option would be to have each department's folders be assigned with security so that only authorized personnel can access the folder (hopefully this is already the case). It would then be unnecessary for the workbooks in those folders to be password-protected, as long as the person working on the consolidated workbook also had at least read-access to the folders.

  8. #8
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Re: Problem with file Links

    When I open the consolidating budget workbook, it asks if I want to "Update" or "Don't Update". If I click "Don't Update" will all the cells that reference an external source workbook (all of which are on a network server) calculate with the current amounts? In other words, when I click "Don't Update", it does not ask me for all the other passwords so if I do that, I get around having to input all the passwords but do all the formulae work properly?

  9. #9
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Problem with file Links

    Don't Update means just what it says.

  10. #10
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    Re: Problem with file Links

    Last question so I will stop bugging you. If I Don't Update, won't I have to ultimately enter all the passwords to get the data to refresh when I finally do hit F9? In which case leads me to try to input code to enter all the passwords so it will refresh without all the aggravation of have to input all the passwords.

  11. #11
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Problem with file Links

    If you don't want to pursue setting up the folder authorities for unprotected workbooks, and if you want to run code that will open all the workbooks with the passwords and then refresh the calculations, that should work.

+ 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. Replies: 14
    Last Post: 12-27-2014, 11:43 AM
  2. Update cell links between 2 excel file without opening source file
    By ferry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2012, 03:03 PM
  3. Replies: 1
    Last Post: 01-06-2012, 12:31 PM
  4. Code Problem(open excel file update links)
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2011, 02:16 PM
  5. External File(s) referenced and file links change based on row cell.
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-23-2009, 02:59 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