+ Reply to Thread
Results 1 to 6 of 6

Link to a worksheet in another workbook based on a cell value

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Red face Link to a worksheet in another workbook based on a cell value

    Good day

    I would like to know if it is at all possible to do the following?

    I have a few files named as follows:

    Campus April 2017.xlsm
    Campus May 2017.xlsm
    Campus June 2017.xlsm etc.

    I also have another workbook called

    2017 Leave Planner.xlsm

    Inside this above file i have Worksheets named January, February, March, etc

    Now would it be possible that if a filename like "Campus April 2017" has the word April it would then link certain cells to 2017 Leave Planner.xlsm "April" Sheet?

    If not then maybe if a Cell Value = April then it would link to the April sheet.

    When i create a new workbook from Campus April 2017, i have a script that also changes links then auto saves as Campus (Following Month) 2017. The above would then need to link if a Cel Value is "May" to link to worksheet "May" in 2017 Leave Planner.xlsm

    If you are not sure what i am trying to say, let me know then i can try rephrase or send file

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Link to a worksheet in another workbook based on a cell value

    One way of doing it would be to have April in a cell and then build the link in a way such as:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Link to a worksheet in another workbook based on a cell value

    Hello
    It is better to attach samples of your files and put some of the expected output
    Regards
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Link to a worksheet in another workbook based on a cell value

    You could use INDIRECT to reference the other file names, BUT the other file that is being references needs to be open as well. Is that something you would consider?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Re: Link to a worksheet in another workbook based on a cell value

    Hi there

    Thanks but i dont want the file to be open the whole time, so no not really!

  6. #6
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Re: Link to a worksheet in another workbook based on a cell value

    Hi there

    Thanks will try upload files ASAP!!!! Thanks for the 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. How can I link cell colours from worksheet to worksheet/workbook?
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  2. How can I link cell colours from worksheet to worksheet/workbook?
    By Evelyn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. [SOLVED] How can I link cell colours from worksheet to worksheet/workbook?
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. How can I link cell colours from worksheet to worksheet/workbook?
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. How can I link cell colours from worksheet to worksheet/workbook?
    By Evelyn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. How can I link cell colours from worksheet to worksheet/workbook?
    By Evelyn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. How can I link cell colours from worksheet to worksheet/workbook?
    By Evelyn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] How can I link cell colours from worksheet to worksheet/workbook?
    By Evelyn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2005, 05:05 PM

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