+ Reply to Thread
Results 1 to 2 of 2

how to reference another workbook and a specific tab on that workbook

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    539

    how to reference another workbook and a specific tab on that workbook

    In our warehouse we monitor daily productivity using a monthly spreadsheet that is broken down into the individual days of the month. Each tab of the workbook is labeled with the days number.

    I am creating a new workbook that will need to reference the productivity workbook. The issue is as the months change so should the workbook being referenced as well as change the tab being looked at based on the day.

    The way to do it would be to reference some cells on a daily entry page that would contain the workbook name to look for as well as a cell that picks what tab to look for. So I need to create a cell reference formula that looks at cell A1 to get the name and location of the workbook to be looked for and cell b1 to get what tab to look for, or something like that.
    Attached Files Attached Files

  2. #2
    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: how to reference another workbook and a specific tab on that workbook

    You can use the INDIRECT function to do that, but it requires that the monthly workbook be open, or you will get an error.

    I think in your case a better option is to use VBA to build the formula each time the month changes.

    Unfortunately the sample files you have provided are of no help. The just have three sheets with a single value on each sheet. You need to show us what you described as "some cells on a daily entry page that would contain the workbook name to look for as well as a cell that picks what tab to look for." And also sample formulas to show the data you want to reference. You can hard-code those formulas for now just to demonstrate what you want.

    The VBA strategy is to use Worksheet_Change to detect changes to the month and day, and rebuild the formulas when that happens.
    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. Replies: 1
    Last Post: 05-19-2015, 11:28 AM
  2. [SOLVED] Copy filename of source workbook to specific cell in specific tab in destination workbook.
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2015, 10:29 PM
  3. Using a cell reference to open a specific sheet within a closed workbook
    By heliwiggy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2014, 12:15 PM
  4. How do I reference another workbook and open a specific sheet named in a cell
    By shabooty542362 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 04:50 PM
  5. Reference a specific cell for part of workbook name in formula
    By randolphoralph in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-04-2013, 01:09 PM
  6. How to reference a specific sheet in a different workbook, other than by name and index
    By Ed_Collins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2013, 01:39 AM
  7. Replies: 0
    Last Post: 08-10-2012, 08:02 AM

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