+ Reply to Thread
Results 1 to 9 of 9

Updating a link in a file extension dynamically based on a field in that spreadsheet

Hybrid View

  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,866

    Re: Updating a link in a file extension dynamically based on a field in that spreadsheet

    Welcome to the Forum tmw2912! And howdy, neighbor!

    The problem with what you need to do is that when you build an external reference with a formula, you need to use the INDIRECT function. And the INDIRECT function requires external files to be open, or the reference gives an error. For example, you want this:

    =INDIRECT("'W:\Client\C\Client name\2013\Test File\Test Name\" & B2 & "\List\[filename.xls]test'!$H$60")

    but it won't work unless the file is open.

    The only option for an external reference to a closed file is macros (VBA). There are two ways to do it. The first is to use a VBA function instead of INDIRECT. There is an add-in for this called INDIRECT.EXT floating around the web, and also other similar solutions. The second way is to use VBA to update the formula in G7 whenever the content of B2 changes.

    I happen to like the second one a little better for your particular case, because it's a little simpler to implement but if your formula changes the code has to be updated. Let me know if you want to go down this road. If you attach your file I can install the code for you.

    You said "one value"--do you really just have one formula like this, or more?
    Last edited by 6StringJazzer; 08-09-2013 at 01:33 PM. Reason: added blue text
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. VBA for Updating Cell validation dynamically based on the RadioButton Selection
    By Rem0ram in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2012, 03:14 PM
  2. Dynamically Updating Chart - Multiple Series based on Advanced Filter
    By alexbell2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-12-2012, 06:52 AM
  3. Replies: 1
    Last Post: 08-15-2008, 07:15 AM
  4. updating a spreadsheet in 1 field w/ out changing values in anoth
    By rmbpjw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2006, 10:10 PM
  5. Cannot download exel spreadsheet file with extension type xls
    By Andrew Robichaud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 08:30 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