Hello
I have exported 30 records from Access into individual Excel files.
I need to create a macro that will import each sheet 1 from these 30 excel files into one Excel workbook.
Is this possible?
Also, is there anyway that we can name the Sheet tab to be the value of the excel file we are importing from?
for example
in Month.xls this will import Sheet1 from 123456.xls and change the sheet number from 1 to 123456 in month.xls then
in month xls this will import sheet1 from 122345.xls and change the sheet number from 2 to 122345 in month.xls then
etal
until all sheets have been created for all the excel files in month.xls with their representing number in the tab name.
The Unique number given to each xls file will also be the value of a2 in each document, so we can get the value from there instead.
many thanks in anticipation
I have exported 30 records from Access into individual Excel files.
I need to create a macro that will import each sheet 1 from these 30 excel files into one Excel workbook.
Is this possible?
Also, is there anyway that we can name the Sheet tab to be the value of the excel file we are importing from?
for example
in Month.xls this will import Sheet1 from 123456.xls and change the sheet number from 1 to 123456 in month.xls then
in month xls this will import sheet1 from 122345.xls and change the sheet number from 2 to 122345 in month.xls then
etal
until all sheets have been created for all the excel files in month.xls with their representing number in the tab name.
The Unique number given to each xls file will also be the value of a2 in each document, so we can get the value from there instead.
many thanks in anticipation