Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Kou Vang
 
Posts: n/a
Default Using Access in Excel VB Code

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.

"Michael" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data from Excel to Access Table Secret Squirrel Excel Discussion (Misc queries) 11 December 2nd 05 11:58 PM
Code to 'lookup' value in Access database maacmaac Excel Discussion (Misc queries) 0 September 16th 05 02:52 AM
Using other workbooks.. DavidMunday Excel Worksheet Functions 2 July 1st 05 07:35 AM
Changing the format of an Excel output file made by Microsoft Access Amir Excel Discussion (Misc queries) 2 May 1st 05 12:57 AM
Excel and Access talking GJR3599 Excel Discussion (Misc queries) 0 March 29th 05 04:59 PM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"