+ Reply to Thread
Results 1 to 2 of 2

Link to cell in closed book with a variable sheet.

  1. #1
    Registered User
    Join Date
    11-11-2010
    Location
    Lublin, Poland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Link to cell in closed book with a variable sheet.

    Hello there.

    Would you please help me with my issue?

    I have a file with 50 sheets and every sheet has unique name (8 digits)
    There is another file and I want to make a link to the cell in that file
    Here is a problem
    I need a formula in my file like this
    ='\\there is a path to file\[FileName.xlsx]SheetName'!A1
    but this SheetName I need to get from a cell in this file wich is located in lets say cell G2
    so I need something like this ='\\there is a path to file\[FileName.xlsx]G2'!A1 where G2 means cell that has 8 digits like my real sheet names
    of course I need formula that will be copied to any files and get data from closed file

    Thank you in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Link to cell in closed book with a variable sheet.

    You cannot do that with Excel's native functionality. I believe Harlan Grove has a UDF called Pull which will work or you could use the free Add in "Morefunc" available at the link below. That add-in contains a function called INDIRECT.EXT which can be used to pull single values indirectly from closed books.

    http://download.cnet.com/Morefunc/30...-10423159.html
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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] Copy sheet from closed wkbk to any open book, using VBA that's in personal.xls
    By franklin_m in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2017, 01:23 PM
  2. Open Closed Book, carry out a VLookup and then put all entries into blank book
    By AChatwin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2015, 03:17 AM
  3. Macro to pull data from cell in closed book
    By DaveLearner in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 05:21 AM
  4. Replies: 4
    Last Post: 11-24-2012, 09:28 AM
  5. Link cell from variable named sheet to cell on another sheet with variable rows
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2010, 01:38 PM
  6. Macro to copy sheet from closed work book and overwrite if sheet already exists
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-23-2009, 06:36 PM
  7. Word link to open an excel book in a previous determined sheet
    By Esgrimidor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2009, 09:20 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