Link to home
Start Free TrialLog in
Avatar of Rayne
RayneFlag for United States of America

asked on

Access VBA

Hello,

Access Possibility
Grab a table data (myTable101) and spit that out sheet1 of C:\RR\myExcelFile.xlsx
Is that possible?


Can someone assist?

thanks
Avatar of Rayne
Rayne
Flag of United States of America image

ASKER

a veyr good vba to do this, thank you
Avatar of Rayne

ASKER

Button on access that will call the macro – which will grab the data from the access table and then spit it out on excel file, stored somewhere…
Avatar of Dale Fye
Have you looked at the help on:

Docmd.TransferSpreadsheet
Well you don't need any code for that.

You can simply import the table (or query) directly to Excel file and refresh the table whenever you need it.

VBA is also the option (let me know from where you want to run it Access or Excel).

Let me know what version of the Excel and Access do you have so I can assist you further.

Regards,

MSMax
Avatar of Rayne

ASKER

Hello MsMax

VBA is also the option (let me know from where you want to run it Access or Excel).
------- I would want to run the macro from within Access (preferably a form button)  - which opens up a specific excel file and  dumps the access table data

Let me know what version of the Excel and Access do you have so I can assist you further.
-----Excel 2010, Access 2010
SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rayne

ASKER

thanks