View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Michael
 
Posts: n/a
Default Using Access in Excel VB Code

Hey Guys.

I was wondering if someone could help me.

Right now, I am working on automating the generation of reports from an
Excel source file. As you could imagine, the Excel file is getting
ridiculuously huge and the cleanup scripts I wrote are taking longer and
longer as more and more records come in.

I have used Access in the past and am porting over the data over there as a
central storage. (This way the information is in a db and it is
easier/quicker to manage.) I already wrote scripts to slice the data as
needed and export it to excel. From here I run the report generation scripts.
So I am going Excel--Access--Excel.

My question is: Is there anyway to do all these steps within excel using
VBA? Essentially, how do I open up Access and run the modules I need to using
excel VBA?

For example, I open up a separate sheet with the code, and it will import
the information into Access, run the Access scripts, export to Excel, and run
the Excel scripts. I know how to write code for excel and access separately,
but not together.

I really appreciate any assistance you could provide.

Thanks.

-Michael