Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Variable Work Book Reference


Hi,

Can anyone help. I am trying to build a workbook that analyses the data
from other workbooks. I.e. I receive timesheet data each month from
employees and I want to change the name of the workbook the data comes
from in each work sheet in the analyses workbook.

For instance I import the data in a particular cell using:

=[timesheet_TT_april_06.xls]Week5!$A$5

But the name of the file timesheet_TT_april_06.xls will change every
month and I use the name in multiple cells to import the data from
various cells.

I have tried putting the name of the other workbook in a cell in the
analyses workbook and then referenced the cell in the file location but
excel does not like it.

Can anyone tell me how I can use a macro or VB function etc to make the
file name a variable I can include in the location of the cell data.

I have tried many different techniques and trawled the web for
solutions without luck.

Thanks in anticipation of any help


--
jimpy22
------------------------------------------------------------------------
jimpy22's Profile: http://www.excelforum.com/member.php...o&userid=33155
View this thread: http://www.excelforum.com/showthread...hreadid=529733

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
work book vspindle Excel Worksheet Functions 2 January 7th 09 01:55 PM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
simultaneously work in a work book with other users Sweets Excel Discussion (Misc queries) 1 April 18th 05 07:35 PM
Using a cell reference to refernce worksheet in another work book [email protected] Excel Worksheet Functions 5 January 6th 05 06:26 PM
Counting the # of pivot tables within a work book and passing in as a variable AlanN Excel Programming 1 August 7th 03 08:07 PM


All times are GMT +1. The time now is 08:46 PM.

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"