G
Guest
Every month I shall receive Excel spreadsheets in a dedicated folder which I
shall then need to merge into various Access tables. There are a lot of
spreadsheets so it's not practicable to cut and paste the data and there are
new spreadsheets every month e.g. Fuel Sales - Jan '06, Fuel Sales - Feb '06,
Fuel Sales - Mar '06. There are many other categories as well e.g. Shop
Sales, H&S etc.
The file names can be in an agreed format so if Sales - Jan '06 is not
appropriate then it could be changed.
I need some code to search for the latest files and append the data they
contain, in the specified worksheet, to myTable_FuelSales, myTableShopSales
etc. in MS Access. The code needs to contain some error checking to warn if
an expected file for the current month has not been found.
Grateful for any help.
shall then need to merge into various Access tables. There are a lot of
spreadsheets so it's not practicable to cut and paste the data and there are
new spreadsheets every month e.g. Fuel Sales - Jan '06, Fuel Sales - Feb '06,
Fuel Sales - Mar '06. There are many other categories as well e.g. Shop
Sales, H&S etc.
The file names can be in an agreed format so if Sales - Jan '06 is not
appropriate then it could be changed.
I need some code to search for the latest files and append the data they
contain, in the specified worksheet, to myTable_FuelSales, myTableShopSales
etc. in MS Access. The code needs to contain some error checking to warn if
an expected file for the current month has not been found.
Grateful for any help.