ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using macro to copy data from Access to Excel (https://www.excelbanter.com/excel-programming/382699-using-macro-copy-data-access-excel.html)

goldcd_2

Using macro to copy data from Access to Excel
 
I am wondering how to make a macro that does the following:

Every day I open my access file, select the query I need, open the query and
copy it, then to open my excel file and paste special values of text into it.
How can I get the macro to select my query and copy it's results.

I can figure out how to get it to open the database and to paste it into
the excel file, but I am having trouble getting it to select the needed query
and copy it. Can anyone tell me how to do this so I don't have to repeat
these steps every day? Thanks.

merjet

Using macro to copy data from Access to Excel
 
http://www.erlandsendata.no/english/...badacexportdao

Hth,
Merjet



Ron de Bruin

Using macro to copy data from Access to Excel
 
see also
http://www.rondebruin.nl/accessexcel.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"goldcd_2" wrote in message ...
I am wondering how to make a macro that does the following:

Every day I open my access file, select the query I need, open the query and
copy it, then to open my excel file and paste special values of text into it.
How can I get the macro to select my query and copy it's results.

I can figure out how to get it to open the database and to paste it into
the excel file, but I am having trouble getting it to select the needed query
and copy it. Can anyone tell me how to do this so I don't have to repeat
these steps every day? Thanks.


goldcd_2

Using macro to copy data from Access to Excel
 
Thanks. Will this also work on a query that I have set up in access? I have
it set up to pull in only the things I want from access this way. It seems to
be the only way I can get the information I am pulling in to work with my
Vlookups in Excel.

"Ron de Bruin" wrote:

see also
http://www.rondebruin.nl/accessexcel.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"goldcd_2" wrote in message ...
I am wondering how to make a macro that does the following:

Every day I open my access file, select the query I need, open the query and
copy it, then to open my excel file and paste special values of text into it.
How can I get the macro to select my query and copy it's results.

I can figure out how to get it to open the database and to paste it into
the excel file, but I am having trouble getting it to select the needed query
and copy it. Can anyone tell me how to do this so I don't have to repeat
these steps every day? Thanks.



Ron de Bruin

Using macro to copy data from Access to Excel
 
No, you run this code example from Excel

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"goldcd_2" wrote in message ...
Thanks. Will this also work on a query that I have set up in access? I have
it set up to pull in only the things I want from access this way. It seems to
be the only way I can get the information I am pulling in to work with my
Vlookups in Excel.

"Ron de Bruin" wrote:

see also
http://www.rondebruin.nl/accessexcel.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"goldcd_2" wrote in message ...
I am wondering how to make a macro that does the following:

Every day I open my access file, select the query I need, open the query and
copy it, then to open my excel file and paste special values of text into it.
How can I get the macro to select my query and copy it's results.

I can figure out how to get it to open the database and to paste it into
the excel file, but I am having trouble getting it to select the needed query
and copy it. Can anyone tell me how to do this so I don't have to repeat
these steps every day? Thanks.




All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com