R
Richard
I have (4) four Access files and (1) Excel file. I want
to open the Excel file, leave the (4) Access files closed
and start a Macro that will:
1) Open the 1st Access file.
2) Run a Query in Access.
3) Copy and paste the contents of the Query into
Sheet1 of the Excel file starting with cell A1.
4) Open the 2nd Access file.
5) Run a Query in Access.
6) Copy and past the contents of the Query into
Sheet1 of the Excel file starting at the end of the data
in step #3 above.
I want to repeat steps 4 through 6 above for the 3rd and
4th Access file each time pasting the data at the end of
the previous pasted data.
I will end up with an open Excel file and (4) four closed
Access files. Sheet 1 will contain all of he pasted data
from the Queries in each of the access files.
I'm not sure if I should post here or in the Access group,
but I have posted and answered post in this the Excel
group before so though I would try here.
I hope someone can help.
Thanks.
to open the Excel file, leave the (4) Access files closed
and start a Macro that will:
1) Open the 1st Access file.
2) Run a Query in Access.
3) Copy and paste the contents of the Query into
Sheet1 of the Excel file starting with cell A1.
4) Open the 2nd Access file.
5) Run a Query in Access.
6) Copy and past the contents of the Query into
Sheet1 of the Excel file starting at the end of the data
in step #3 above.
I want to repeat steps 4 through 6 above for the 3rd and
4th Access file each time pasting the data at the end of
the previous pasted data.
I will end up with an open Excel file and (4) four closed
Access files. Sheet 1 will contain all of he pasted data
from the Queries in each of the access files.
I'm not sure if I should post here or in the Access group,
but I have posted and answered post in this the Excel
group before so though I would try here.
I hope someone can help.
Thanks.