Insert value of a cell as a filename

R

Ralph Howarth

Is there a way to insert the value of a cell as a filename for referencing a
cell in another workbook?

ex: =<FileName>!$Col&Row
where <FileName> is a variable text string indicating the name of the
workbook desired to be referenced.

The application involved is such that a user would open up an Excel file
that serves as a data conversion tool. To set up, the user enters their
account information by entering in thier ID number. The ID number is the
variable portion of the text string that a file name is named by.

ex: ="ReportName"+UserID+".csv"
where FileName is the Name given the cell containing the concatenated text
string and UserID is the variable portion of the file name by way of an ID
number of the target user to receive the report.

I have tried different syntax to have the variable be read as literal text
such as:

'FileName
'FileName'
'(FileName)
'(FileName)'
'=(FileName)
'=(FileName)'
'(=FileName)
'(=FileName)'

I will receive either a message of "That name is not valid" or an Update
Values prompt for "(FileName)" when FileName is a Name in the workbook whose
cell reference already has a value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top