If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Retrieving a filename from a cell in Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-04, 08:32
brynpowys brynpowys is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Retrieving a filename from a cell in Excel

I would like to enter the name of an external file into a Excel cell so that I can use that name in excel formulas to refer to other spreadsheets.
Any ideas please?
Reply With Quote
  #2 (permalink)  
Old 09-17-04, 19:46
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Welcome to the Board!

Take a look at the INDIRECT() function, which will require the workbooks to be open. If you need to work with them closed, you can use INDIRECT.EXT, which can be found in the MOREFUNC add-in, which you can find here: http://longre.free.fr/english/index.html.

i.e. =INDIRECT("'["&C1&"]Sheet1'!$A$1"), where C1 holds the filename.

Hope that helps,

Smitty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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