ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   'Alias' for file name..... (https://www.excelbanter.com/excel-worksheet-functions/34155-alias-file-name.html)

billsc

'Alias' for file name.....
 
I have a long log file where I pull only 10 of the columns and combine data.
This means I need to have the somefilenamethatistoolong.xls in every formula
and the file may change from release to release.
I would like to put some where that "log=
c:\logfiles\somefilenamethatistoolong.xls"
and then use [log] in the formulas...
How do I do this....

Bob Phillips

Try this

Create a name (InsertNameDefine ...) with a name of log and the value of
=c:\logfile\the file name.xls and then use

=INDIRECT(log&"Sheet1A1")

etc.

This only works while the othetr book is open, so you may need to do a
copy/paste values.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"billsc" wrote in message
...
I have a long log file where I pull only 10 of the columns and combine

data.
This means I need to have the somefilenamethatistoolong.xls in every

formula
and the file may change from release to release.
I would like to put some where that "log=
c:\logfiles\somefilenamethatistoolong.xls"
and then use [log] in the formulas...
How do I do this....




Dave Peterson

Another option...

Copy that somefilenamethatistoolong.xls to a nice location and call it log.xls.

Use that in your formula.

Whenever the somefilenamethatistoolong.xls gets updated, you will have to
remember to copy that workbook again.



billsc wrote:

I have a long log file where I pull only 10 of the columns and combine data.
This means I need to have the somefilenamethatistoolong.xls in every formula
and the file may change from release to release.
I would like to put some where that "log=
c:\logfiles\somefilenamethatistoolong.xls"
and then use [log] in the formulas...
How do I do this....


--

Dave Peterson

Bob Phillips

LOL. De Bono like!


"Dave Peterson" wrote in message
...
Another option...

Copy that somefilenamethatistoolong.xls to a nice location and call it

log.xls.

Use that in your formula.

Whenever the somefilenamethatistoolong.xls gets updated, you will have to
remember to copy that workbook again.



billsc wrote:

I have a long log file where I pull only 10 of the columns and combine

data.
This means I need to have the somefilenamethatistoolong.xls in every

formula
and the file may change from release to release.
I would like to put some where that "log=
c:\logfiles\somefilenamethatistoolong.xls"
and then use [log] in the formulas...
How do I do this....


--

Dave Peterson




Dave Peterson

I expected some .vbs code that would copy the file, then start excel and open
that workbook so that it becomes a single click operation!

Bob Phillips wrote:

LOL. De Bono like!

"Dave Peterson" wrote in message
...
Another option...

Copy that somefilenamethatistoolong.xls to a nice location and call it

log.xls.

Use that in your formula.

Whenever the somefilenamethatistoolong.xls gets updated, you will have to
remember to copy that workbook again.



billsc wrote:

I have a long log file where I pull only 10 of the columns and combine

data.
This means I need to have the somefilenamethatistoolong.xls in every

formula
and the file may change from release to release.
I would like to put some where that "log=
c:\logfiles\somefilenamethatistoolong.xls"
and then use [log] in the formulas...
How do I do this....


--

Dave Peterson


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com