Running Excel module within Access

  • Thread starter Thread starter Id10 Terror
  • Start date Start date
I

Id10 Terror

Hi:

I have both MS Excel 2003 and Access 2003. I am getting an Excel module
that will connect to the internet and download some information. I will
only use Excel for this single feature. I always work within Access and now
I need to know how to run that Excel module within Access so that I can
import/link and append the records.

Can any show me how to run an Excel module within Access?


Thanks
 
This may give you some ideas.

Function Open_Test()
Dim xlApp As Variant
Dim xlBook As Variant
Set xlApp = CreateObject("Excel.Applicatio­n")
Set xlBook = xlApp.Workbooks.Open("C:\data\­excel\Test.xlt")
xlApp.Run "testproc"
xlBook.Close (False)
xlApp.Quit
Set xlApp = Nothing
Set xlBook = Nothing
End Function

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi:
|
| I have both MS Excel 2003 and Access 2003. I am getting an Excel module
| that will connect to the internet and download some information. I will
| only use Excel for this single feature. I always work within Access and
now
| I need to know how to run that Excel module within Access so that I can
| import/link and append the records.
|
| Can any show me how to run an Excel module within Access?
|
|
| Thanks
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top