Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Okay, this is what I'm trying to do.
I would like to create a log that would track changes from other files. This log file would know the file names based on other information in the log. I would like to do it this way so I won't have to change every line of the log. Is there a way to place a type of "=d2" formula when looking into another file? For example, For Cell A2, I want it to get the file from: C:\Files\Subfolder\FileName.xls "Subfolder" will be whatever is listed in cell D2 "File Name" will actually be what is listed in cell E2 + cell F2 And then inside that file, I'll want it to come back with Cell A1 (or whatever). Is this possible? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try
=indirect("[C\Files"&d2&"\"&E2&F2&"]"&"Sheet1!A1") "DJ Pomeroy" wrote: Okay, this is what I'm trying to do. I would like to create a log that would track changes from other files. This log file would know the file names based on other information in the log. I would like to do it this way so I won't have to change every line of the log. Is there a way to place a type of "=d2" formula when looking into another file? For example, For Cell A2, I want it to get the file from: C:\Files\Subfolder\FileName.xls "Subfolder" will be whatever is listed in cell D2 "File Name" will actually be what is listed in cell E2 + cell F2 And then inside that file, I'll want it to come back with Cell A1 (or whatever). Is this possible? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
DJ,
Note that the INDIRECT method won't work on closed files. But one way that will work is to create the referencing formulas with formulas, and then using a macro to convert to actual formulas. For example, to pull cell D2: In cell A2, use the formula ="='C:\Files\" & D2 & "\[" & E2 & "]" &F2 & "'!D2" In cell D2, put the foldername. In cell E2, put the filename, including the .xls In cell F2, put the sheet name Then copy those cells down as far as you need. Then select the cells in column F, and run this macro: Sub ConvStringToFormula() Dim myCell As Range For Each myCell In Selection myCell.Formula = myCell.Text Next End Sub HTH, Bernie MS Excel MVP "DJ Pomeroy" wrote in message ... Okay, this is what I'm trying to do. I would like to create a log that would track changes from other files. This log file would know the file names based on other information in the log. I would like to do it this way so I won't have to change every line of the log. Is there a way to place a type of "=d2" formula when looking into another file? For example, For Cell A2, I want it to get the file from: C:\Files\Subfolder\FileName.xls "Subfolder" will be whatever is listed in cell D2 "File Name" will actually be what is listed in cell E2 + cell F2 And then inside that file, I'll want it to come back with Cell A1 (or whatever). Is this possible? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Smooth, I like it
"Bernie Deitrick" wrote: DJ, Note that the INDIRECT method won't work on closed files. But one way that will work is to create the referencing formulas with formulas, and then using a macro to convert to actual formulas. For example, to pull cell D2: In cell A2, use the formula ="='C:\Files\" & D2 & "\[" & E2 & "]" &F2 & "'!D2" In cell D2, put the foldername. In cell E2, put the filename, including the .xls In cell F2, put the sheet name Then copy those cells down as far as you need. Then select the cells in column F, and run this macro: Sub ConvStringToFormula() Dim myCell As Range For Each myCell In Selection myCell.Formula = myCell.Text Next End Sub HTH, Bernie MS Excel MVP "DJ Pomeroy" wrote in message ... Okay, this is what I'm trying to do. I would like to create a log that would track changes from other files. This log file would know the file names based on other information in the log. I would like to do it this way so I won't have to change every line of the log. Is there a way to place a type of "=d2" formula when looking into another file? For example, For Cell A2, I want it to get the file from: C:\Files\Subfolder\FileName.xls "Subfolder" will be whatever is listed in cell D2 "File Name" will actually be what is listed in cell E2 + cell F2 And then inside that file, I'll want it to come back with Cell A1 (or whatever). Is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
retrieving data | Excel Worksheet Functions | |||
Reading Data from another workbook... depending on variable in a cell? | Excel Discussion (Misc queries) | |||
Retrieving data from the web - help ! | Excel Worksheet Functions | |||
Input Cell in One variable data table | Excel Worksheet Functions | |||
Retrieving deleted Excel files/worksheets | Excel Discussion (Misc queries) |