Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Linking Worksheets and Workbooks

I need to know how to link two workbooks when the name of one of them will be
constantly changing. One workbook will be used to track productivity and
provide some analysis while the other workbook, the one with the changing
name, will be payroll file that lists how many hours each department worked,
wages, OT, etc.

So I will name the data file for the last day of the week and have files
named 06JAN2007, 13JAN2007, etc. So instead of just hitting the = sign and
linking to two workbooks I want it to look for the name of the workbook in a
cell somewhere so that all I have to do each week is change the file name in
the reference cell.

Any idea on how to ask it to get the info from a file that is named in a
cell on the current worksheet?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Linking Worksheets and Workbooks

Hi,

Here are four possible solutions:

1. Indirect Function

With this function you can create references to *open* workbooks and link
them dynamically. The drawback is that the workbook have to be open to link.
and refresh. (This can be over come with a auto open macro that also open the
indirectly linked work sheets by using a datatable and opening the referenced
links.)

2. Direct Links

Using direct links and writing an auto open macro to automatically find and
replace the references to the old workbook and replace with the new workbook.
This method relies on a lookup table recording the current workbook name
(static text updated when the macro is run) and the expected workbook nmae a
formula working out the new name.

3. Basically the same as 2 above but using defined names and then changing
the named ranges presumably using an auto open function.

4. Find and Replace

The tried and tested method of Ctrl+H.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Michael in Texas" wrote:

I need to know how to link two workbooks when the name of one of them will be
constantly changing. One workbook will be used to track productivity and
provide some analysis while the other workbook, the one with the changing
name, will be payroll file that lists how many hours each department worked,
wages, OT, etc.

So I will name the data file for the last day of the week and have files
named 06JAN2007, 13JAN2007, etc. So instead of just hitting the = sign and
linking to two workbooks I want it to look for the name of the workbook in a
cell somewhere so that all I have to do each week is change the file name in
the reference cell.

Any idea on how to ask it to get the info from a file that is named in a
cell on the current worksheet?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking a cell to worksheets and workbooks Kim Thompson New Users to Excel 2 October 13th 06 04:40 PM
linking problems and worksheets and workbooks Ironwig Excel Discussion (Misc queries) 0 April 19th 06 11:21 PM
Linking Worksheets in an undefined number of Workbooks ozcarb Excel Discussion (Misc queries) 0 March 22nd 06 10:24 PM
Linking between multiple worksheets, workbooks and columns cmvbfore Excel Discussion (Misc queries) 0 October 4th 05 06:58 PM
Linking set of worksheets between different workbooks! gp Excel Discussion (Misc queries) 0 March 22nd 05 09:27 PM


All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"