+ Reply to Thread
Results 1 to 5 of 5

Auto linking to other worksheets

  1. #1
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Auto linking to other worksheets

    i have a worksheet which has the months of the year across the top i.e. May-20, June-20 etc

    I then have rows beneath each which pull in data from worksheets for those months using the filename as a reference - PNMS Billing - May 2020.xlsx....etc

    How can i do this so that I can just drag across from May and the month part of the reference is updated to Jun 2020.xlsx etc, rather than having to configure them all individually.

    See attached for details
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-02-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    51

    Re: Auto linking to other worksheets

    You would need o use something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You may need to adjust the Text element depending on how longer names appear in the file names

  3. #3
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Re: Auto linking to other worksheets

    Ok so when i use that, customised as suggested, I get a ref error, however when open the monthly file up it updates the form?

  4. #4
    Registered User
    Join Date
    06-02-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    51

    Re: Auto linking to other worksheets

    Remove the Indirect function which will cause it to output just the completed string... check that against the value in the cell that is working and double check for any missing spaces/characters etc

  5. #5
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Re: Auto linking to other worksheets

    Hi

    I've stripped this back as all the files are in the same directory, so now have

    =INDIRECT("'[PNMS Billing - " & TEXT(V$1,"mmm yyyy") & ".xlsx]Invoice - HJA'!$F$18")

    Taking the INDIRECT out, as you advised to check, gives me

    '[PNMS Billing - Jun 2020.xlsx]Invoice - HJA'!$F$18

    Which looks right?

+ 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] Macro to create new worksheets and auto populate cells in created worksheets
    By cole.young in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-05-2018, 02:47 PM
  2. Need help linking 3 worksheets together
    By Hoffman325 in forum Excel General
    Replies: 0
    Last Post: 06-20-2012, 10:31 AM
  3. Replies: 0
    Last Post: 04-04-2012, 08:12 AM
  4. Auto Linking
    By johnlovesbeer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2011, 07:17 PM
  5. Replies: 1
    Last Post: 06-05-2008, 08:14 AM
  6. linking worksheets to auto-insert rows
    By rbatkie in forum Excel General
    Replies: 1
    Last Post: 02-28-2007, 12:04 PM
  7. Replies: 3
    Last Post: 02-11-2007, 10:17 AM

Tags for this Thread

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