Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Access VBA from Excel
Hi folks,
Currently I am automating some reporting. I pull data from a linked table into a table within Access and then do some calculations and make some modifications to the table using vba I have written. I then have excel vba which pulls the data from the access table I have created into excel and the excel vba does calculations and draws up the graphs I require. Currently I have to open Access run the vba there then I go into excel and run the vba there. What I would like to do is run the Access vba from excel but have no idea how. I'm using Excel and Access 2003 and am using DAO. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Access VBA from Excel
Got it now just a case of:
dim accApp as access.application set accApp = new access.application accApp.openCurrentDatabase (path) accApp.run(macro_name) accApp.quit "Chergh" wrote: Hi folks, Currently I am automating some reporting. I pull data from a linked table into a table within Access and then do some calculations and make some modifications to the table using vba I have written. I then have excel vba which pulls the data from the access table I have created into excel and the excel vba does calculations and draws up the graphs I require. Currently I have to open Access run the vba there then I go into excel and run the vba there. What I would like to do is run the Access vba from excel but have no idea how. I'm using Excel and Access 2003 and am using DAO. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running Access-to-Excel Automation.... | Excel Discussion (Misc queries) | |||
Running Excel module within Access | Excel Programming | |||
Running SQL queries for Access using Excel VBA | Excel Programming | |||
Getting Access Error Messages when running Access through Excel | Excel Programming | |||
Running A Access Macro From Excel | Excel Programming |