LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Syntax To Link 2 Workbooks

Greetings,

I need to modify this code snippet:

'[1999-12.xls]Daily'!D41

D41 on the Daily sheet (on all the workbooks in this series) is a
reference cell. All of the workbooks are number as dates in the
yyyy-mm format. For example: the workbook for the month of April in
2003 is called 2003-04.xls.

In the code snippet above, I need to make it more universal. Here are
two example of this:

="'["&YEAR(B4)&"-"&MONTH(B4)&".xls]Daily'!$D$41"

and

="'["&TEXT(B4,"yyyy-mm")&".xls]Daily'!$D$41"

The display of both of these look the same as the hard coded snippet
above if B4 is Dec 27,1999. The code snippet works, these other two
don't work at all. If I enter these into the IF statement as written,
Excel will not even let me enter them. If I remove the "s and &s, I
can enter them and get a #VALUE! error. GRRRRRRR

Anyone have any ideas?

TIA

-Minitman
 
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
Link two workbooks Mariann Excel Discussion (Misc queries) 3 January 7th 09 05:56 PM
link workbooks Syahira Excel Discussion (Misc queries) 6 July 13th 06 11:04 AM
Link Between To Workbooks travelersway Excel Discussion (Misc queries) 2 February 11th 06 02:54 PM
Syntax Error - Using Microsoft Query and ODBC link to a table James T Excel Discussion (Misc queries) 0 August 31st 05 02:18 AM
How workbooks link to other workbooks Greg Excel Discussion (Misc queries) 4 August 11th 05 07:50 PM


All times are GMT +1. The time now is 07:38 AM.

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

About Us

"It's about Microsoft Excel"