+ Reply to Thread
Results 1 to 2 of 2

Dynamic Path to Sheet Name, Excel

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    NA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Dynamic Path to Sheet Name, Excel

    I have an excel work book with a sheet I use to cross reference external table names to their associated lookup tables 2 columns. The first column is a list of table names. The second column is a list of the tables associated lookup table. See image

    Tabbles.jpg

    The lookup tables are additional sheets in the same workbook. So I have 5 additional sheets called 'Table1_lookup', 'Table2_lookup', 'Table3_lookup', 'Table4_lookup', 'Table5_lookup'

    I want to dynamically set the Lookup table names to it's associated sheet, so that if someone changes the sheet name, the cell in the 'LOOKUP_TABLE' column in the cross reference table above, will automatically update as well. is there a way to accomplish this with a simple formula? I've seem ways to hard code to the sheet name, but when the sheet name changes, the link is broken.

    Thanks, Mike

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Dynamic Path to Sheet Name, Excel

    you could use a vba function to use the sheets codename to return the currentname. But it does mean that you would have to enable vba and it wouldn't refresh automatically. You would need some event eg opening the workbook, or clicking a button etc to cause the update.

    If you need help let me know.


    click on the * Add Reputation if this was useful or entertaining.

+ 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. Macro to save sheet as CSV using a dynamic file name and file path
    By chris.tinta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 10:45 AM
  2. Need a Dynamic file path to pull the numbers from different closed excel files
    By vishnu01445 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 11:59 AM
  3. Taking path name from another excel sheet
    By missf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2011, 04:46 AM
  4. Creating Dynamic Folders/WorkBook from a Sheet with Dynamic Path.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-28-2011, 05:42 AM
  5. [SOLVED] setting a dynamic path in an excel query
    By Glen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2006, 12:40 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