+ Reply to Thread
Results 1 to 2 of 2

Automating update link to another workbook

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    25

    Automating update link to another workbook

    Hello Gurus,

    I am not sure if it is possible but I am in a process of trying to updating a link to another workbook and am wondering is this is possible.

    Workbook 1: ABC 1-4-14

    A B C
    1 Hi Bye Hola

    Workbook 2: XYZ 1-7-14

    A B C
    1 Hello Adios Gum

    So my formula on a master sheet is:

    To get cells A1: ='C:\Desktop\[ABC 1-4-14.xls]Sheet 1'!A1 and then B1, C1 (Might not be set up correctly but this is an example)

    So What I am doing now is just find and replace the dates to move it to the second book XYZ but just having a box to change to cell date value.
    i.e.

    On cell say B1: 1-4-14 Once I change this to 1-7-14 those values from that book will pop up. So this is my formula but I could not get it to work: ='C:\Desktop\[ABC&" "&B11.xls]Sheet 1'!A1
    (Trying to make the file change to the date with the same exact formatting. That's why I did that, not sure if it is correct.)

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Automating update link to another workbook

    So you are basically trying to use the INDIRECT functionality (incorrectly) but indirect will not work with external closed workbooks.

    To learn more about indirect:
    http://office.microsoft.com/en-us/ex...005209139.aspx

    But like I said, you cant use indirect with a closed workbook so you will have to come up with another solution.

    Right off the top of my head you have a couple of alternative options
    1) You can simply open both files, find and replace the old date with the new date, then refresh links - this requires the least development time and would only work if you are doing it and not handing this tool off to someone else
    2) You can have an import macro that you use to simply copy over the data you need into a background tab then link your report to the new tab. -- This is probably what I would do as you can either have a cell reference the name of the file you want to open and copy from, or you can allow the macro to choose the workbook you want to use to open and copy from.
    3) You could use the Pull UserDefinedFunction as indicated here: http://numbermonger.com/2012/02/11/e...sed-workbooks/
    I have tried it just to test that it works but I ended up deciding on option 2 above as it was the easiest for everyone else to understand (since I was handing the tool over to someone else)
    Last edited by mikeTRON; 07-15-2014 at 11:14 AM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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. Update and link cells in a workbook as an Inventory
    By neshv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2014, 04:23 AM
  2. How to suppress the two Link Update Warnings on a workbook start-up ?
    By htawfik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 03:49 AM
  3. Excel Workbook link won't update without open
    By BlastRanger in forum Excel General
    Replies: 10
    Last Post: 11-15-2010, 08:18 AM
  4. [SOLVED] How to Update a link within a workbook
    By Lynne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-31-2006, 06:45 PM
  5. [SOLVED] link update within workbook failing
    By windsurferLA in forum Excel General
    Replies: 6
    Last Post: 01-11-2006, 03:45 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