krappleby025
Programmer
Hi All,
i have a question, may be simple maybe not..
i have an excel spreadsheet, which i am tryint to use to create a report.
The sheet contains a cell with a date in it. in the format of 09.11.04 dd.mm.yy This cell is C4
Now, i have a load of files, each one labeled in the following manner
AU high usage report 09.11.04.xls
DE high usage report 09.11.04.xls
etc
each file is labeled with a different date.
now i am trying to set up the spreadsheet so that when i enter the date in C4 it pulls all the corresponding files into the excel sheet.
i set up a macro to do this, but i know there is another way.. but anyway, the macro at the moment just pulls in a set file. i am trying to make it pull in the file for the data entered in C4. looking into the macro i see this
"OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=P:\New Reports\AU Credit Limit" _
, _
" High usage(""=C4"").xls;Mode=Share Deny Write;Extended
note that i have already tried to set it up so that the file that corresponds to the date is pulled but it does not seem to work.
Can someone tell me how to change the section
High usage(""=C4"").xls;Mode
so that the file that has the date entered in the C4 box is pulled
Cheers
i have a question, may be simple maybe not..
i have an excel spreadsheet, which i am tryint to use to create a report.
The sheet contains a cell with a date in it. in the format of 09.11.04 dd.mm.yy This cell is C4
Now, i have a load of files, each one labeled in the following manner
AU high usage report 09.11.04.xls
DE high usage report 09.11.04.xls
etc
each file is labeled with a different date.
now i am trying to set up the spreadsheet so that when i enter the date in C4 it pulls all the corresponding files into the excel sheet.
i set up a macro to do this, but i know there is another way.. but anyway, the macro at the moment just pulls in a set file. i am trying to make it pull in the file for the data entered in C4. looking into the macro i see this
"OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=P:\New Reports\AU Credit Limit" _
, _
" High usage(""=C4"").xls;Mode=Share Deny Write;Extended
note that i have already tried to set it up so that the file that corresponds to the date is pulled but it does not seem to work.
Can someone tell me how to change the section
High usage(""=C4"").xls;Mode
so that the file that has the date entered in the C4 box is pulled
Cheers