close

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--gt;Access--gt;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

Since they are both Microsoft products, there is immense amounts of code to
use Office Automation from the Office Suites. I cannot tell you which one is
better to start in, whether Excel or Access. I started in Excel and have
progressively used Access more and more, so I would start in Access, and open
up Excel through Access, run the scripts, run in Access, then report in Excel
since that is the case. Many designers do this since their clients prefer
the look of Excel. I would look into the Knowledge Base to find out more.
VBA is not that different from one to the other, just in the objects you will
be using.

quot;Michaelquot; wrote:

gt; Hey Guys.
gt;
gt; I was wondering if someone could help me.
gt;
gt; Right now, I am working on automating the generation of reports from an
gt; Excel source file. As you could imagine, the Excel file is getting
gt; ridiculuously huge and the cleanup scripts I wrote are taking longer and
gt; longer as more and more records come in.
gt;
gt; I have used Access in the past and am porting over the data over there as a
gt; central storage. (This way the information is in a db and it is
gt; easier/quicker to manage.) I already wrote scripts to slice the data as
gt; needed and export it to excel. From here I run the report generation scripts.
gt; So I am going Excel--gt;Access--gt;Excel.
gt;
gt; My question is: Is there anyway to do all these steps within excel using
gt; VBA? Essentially, how do I open up Access and run the modules I need to using
gt; excel VBA?
gt;
gt; For example, I open up a separate sheet with the code, and it will import
gt; the information into Access, run the Access scripts, export to Excel, and run
gt; the Excel scripts. I know how to write code for excel and access separately,
gt; but not together.
gt;
gt; I really appreciate any assistance you could provide.
gt;
gt; Thanks.
gt;
gt; -Michael

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()