Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Updating of Changing filenames
Hi,
This is probably a really easy thing to fix, but I am seriously struggling. ISSUE AT HAND What I need is to have a worksheet (call it totals) that contains values from a multitude of other worksheets (call each of them company). This has been working just fine. However, I realized that since the filenames change every month (i.e. From 04-08workbook.xls to 05-08workbook.xls) I could make it so I don't have to manually update the cell references: in the "totals" workbook there are cells that refer to sums in each of the "company" workbooks and these "company" workbooks are the ones that have the aforementioned name changes. MY FAILING SOLUTION So, what I have tried to do was I got Excel to have a date cell formatted to have {=now()} formatted to mm-yy and I tried to put in the information for that date cell and file extension into the desination cells in the "Totals" workbook with no avail. I have also been trying to write a macro to paste the the date and file extension into a workbooks.open filename = _ paste which has also not worked. Logically it seems that either method would work, but I feel that the different properties of the open filename and the destination cells are not compatible for what I think is logical. Do you have any suggestions as to how I could get this to work? It would be greatly appreciated |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Updating of Changing filenames
Try
=TEXT(NOW(), "mm-yy") "Tony O" wrote: Hi, This is probably a really easy thing to fix, but I am seriously struggling. ISSUE AT HAND What I need is to have a worksheet (call it totals) that contains values from a multitude of other worksheets (call each of them company). This has been working just fine. However, I realized that since the filenames change every month (i.e. From 04-08workbook.xls to 05-08workbook.xls) I could make it so I don't have to manually update the cell references: in the "totals" workbook there are cells that refer to sums in each of the "company" workbooks and these "company" workbooks are the ones that have the aforementioned name changes. MY FAILING SOLUTION So, what I have tried to do was I got Excel to have a date cell formatted to have {=now()} formatted to mm-yy and I tried to put in the information for that date cell and file extension into the desination cells in the "Totals" workbook with no avail. I have also been trying to write a macro to paste the the date and file extension into a workbooks.open filename = _ paste which has also not worked. Logically it seems that either method would work, but I feel that the different properties of the open filename and the destination cells are not compatible for what I think is logical. Do you have any suggestions as to how I could get this to work? It would be greatly appreciated |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Updating of Changing filenames
I appreciate the feedback, but I have already done that in a cell. I am
trying to incorporate that =text(now(), "text") in the destination cells whose filename extensions change from month to month. Any ideas how I could get the destination cells to look at the destination. I will show you what I have thus far: =$N$1&" "&K2&"\"&L2&"\Claims Mgt\Open\2008\"&TEXT($M$1, "mm-yy")&" "&L2&" Open Work Comp Loss Summary Analysis.xls" this shows F:\CompTrol Management\CompTrol Brody\AG Obrien\Claims Mgt\Open\2008\05-08 AG Obrien Open Work Comp Loss Summary Analysis.xls I am trying to get it to look at a cell in that workbook, on sheet1 Any ideas? Thank you Tony O "JLGWhiz" wrote: Try =TEXT(NOW(), "mm-yy") "Tony O" wrote: Hi, This is probably a really easy thing to fix, but I am seriously struggling. ISSUE AT HAND What I need is to have a worksheet (call it totals) that contains values from a multitude of other worksheets (call each of them company). This has been working just fine. However, I realized that since the filenames change every month (i.e. From 04-08workbook.xls to 05-08workbook.xls) I could make it so I don't have to manually update the cell references: in the "totals" workbook there are cells that refer to sums in each of the "company" workbooks and these "company" workbooks are the ones that have the aforementioned name changes. MY FAILING SOLUTION So, what I have tried to do was I got Excel to have a date cell formatted to have {=now()} formatted to mm-yy and I tried to put in the information for that date cell and file extension into the desination cells in the "Totals" workbook with no avail. I have also been trying to write a macro to paste the the date and file extension into a workbooks.open filename = _ paste which has also not worked. Logically it seems that either method would work, but I feel that the different properties of the open filename and the destination cells are not compatible for what I think is logical. Do you have any suggestions as to how I could get this to work? It would be greatly appreciated |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Updating of Changing filenames
Do you mean like
(beginning of formula)&TEXT(Sheet2!$M$1, "mm-yy")& (rest of formula) to reference a cell on sheet 2 from sheet 1? "Tony O" wrote: I appreciate the feedback, but I have already done that in a cell. I am trying to incorporate that =text(now(), "text") in the destination cells whose filename extensions change from month to month. Any ideas how I could get the destination cells to look at the destination. I will show you what I have thus far: =$N$1&" "&K2&"\"&L2&"\Claims Mgt\Open\2008\"&TEXT($M$1, "mm-yy")&" "&L2&" Open Work Comp Loss Summary Analysis.xls" this shows F:\CompTrol Management\CompTrol Brody\AG Obrien\Claims Mgt\Open\2008\05-08 AG Obrien Open Work Comp Loss Summary Analysis.xls I am trying to get it to look at a cell in that workbook, on sheet1 Any ideas? Thank you Tony O "JLGWhiz" wrote: Try =TEXT(NOW(), "mm-yy") "Tony O" wrote: Hi, This is probably a really easy thing to fix, but I am seriously struggling. ISSUE AT HAND What I need is to have a worksheet (call it totals) that contains values from a multitude of other worksheets (call each of them company). This has been working just fine. However, I realized that since the filenames change every month (i.e. From 04-08workbook.xls to 05-08workbook.xls) I could make it so I don't have to manually update the cell references: in the "totals" workbook there are cells that refer to sums in each of the "company" workbooks and these "company" workbooks are the ones that have the aforementioned name changes. MY FAILING SOLUTION So, what I have tried to do was I got Excel to have a date cell formatted to have {=now()} formatted to mm-yy and I tried to put in the information for that date cell and file extension into the desination cells in the "Totals" workbook with no avail. I have also been trying to write a macro to paste the the date and file extension into a workbooks.open filename = _ paste which has also not worked. Logically it seems that either method would work, but I feel that the different properties of the open filename and the destination cells are not compatible for what I think is logical. Do you have any suggestions as to how I could get this to work? It would be greatly appreciated |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Updating of Changing filenames
I am not sure what you mean by destination cells. The cell with the formula
is the destination cell in this case. The other cells that you reference are source cells or precedents. "Tony O" wrote: I appreciate the feedback, but I have already done that in a cell. I am trying to incorporate that =text(now(), "text") in the destination cells whose filename extensions change from month to month. Any ideas how I could get the destination cells to look at the destination. I will show you what I have thus far: =$N$1&" "&K2&"\"&L2&"\Claims Mgt\Open\2008\"&TEXT($M$1, "mm-yy")&" "&L2&" Open Work Comp Loss Summary Analysis.xls" this shows F:\CompTrol Management\CompTrol Brody\AG Obrien\Claims Mgt\Open\2008\05-08 AG Obrien Open Work Comp Loss Summary Analysis.xls I am trying to get it to look at a cell in that workbook, on sheet1 Any ideas? Thank you Tony O "JLGWhiz" wrote: Try =TEXT(NOW(), "mm-yy") "Tony O" wrote: Hi, This is probably a really easy thing to fix, but I am seriously struggling. ISSUE AT HAND What I need is to have a worksheet (call it totals) that contains values from a multitude of other worksheets (call each of them company). This has been working just fine. However, I realized that since the filenames change every month (i.e. From 04-08workbook.xls to 05-08workbook.xls) I could make it so I don't have to manually update the cell references: in the "totals" workbook there are cells that refer to sums in each of the "company" workbooks and these "company" workbooks are the ones that have the aforementioned name changes. MY FAILING SOLUTION So, what I have tried to do was I got Excel to have a date cell formatted to have {=now()} formatted to mm-yy and I tried to put in the information for that date cell and file extension into the desination cells in the "Totals" workbook with no avail. I have also been trying to write a macro to paste the the date and file extension into a workbooks.open filename = _ paste which has also not worked. Logically it seems that either method would work, but I feel that the different properties of the open filename and the destination cells are not compatible for what I think is logical. Do you have any suggestions as to how I could get this to work? It would be greatly appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Data query refresh problem with changing filenames | Excel Programming | |||
print pdf's with changing filenames in a macro | Excel Programming | |||
How to create Automatic Filenames in Excel | Excel Discussion (Misc queries) | |||
Linked excel charts, changing filenames generates exception | Excel Programming | |||
Changing filenames using theSaveAsCopy method | Excel Programming |