How to Retrieve Data from Excel?

P

Paul Vovk

I would like to write a VBA function in Access to perform
operations in Excel in a specific file and return the
contents of a cell. Can I open up and manipulate an Excel
file from within Access? If not, can I at least extract
the value of a cell in a spreadsheet and return it to
Access?
 
G

Guest

You can "Automate" Excel from Access and make it do whatever you like. Here's an articel showing how to do it from a web page. You can cut the Javascript function and with just a few changes have it working in Access

remove curley braces
remove semi colon
convert var to Di
convert var oXL = new ActiveXObject("Excel.Application"); To Set oXL = CreateObject("Excel.Application"

That should do it for ya ..
 

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

Top