#1   Report Post  
Keith
 
Posts: n/a
Default Excel to Access


I have created a macro in an Excel workbook to do various things with a web
query, then export one sheet of the workbook as a txt file. I then get the
macro to open Access.

What I am wanting to do is:- I want my macro to, not only open Access, but
to open a specific Access Database and if possible, run a macro within that
database to import the data that I have exported from Excel.

Any ideas?

Thanks


  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Why wouldn't you just use ADO within VBA to run an insert query, inserting
from the Excel sheet into the Access database? That way you don't ever have
to 'open' Access.

I haven't done that via code in several years, and it'd take me a while to
go through archived files to find a sample. I'm sure some of the MVPs here
can jot off some samples lickety split, though.


"Keith" wrote:


I have created a macro in an Excel workbook to do various things with a web
query, then export one sheet of the workbook as a txt file. I then get the
macro to open Access.

What I am wanting to do is:- I want my macro to, not only open Access, but
to open a specific Access Database and if possible, run a macro within that
database to import the data that I have exported from Excel.

Any ideas?

Thanks



  #3   Report Post  
Ron Coderre
 
Posts: n/a
Default

See if this site helps you out:

http://www.exceltip.com/exceltips.ph...ategory&ID=213

--
Regards,
Ron

  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default

See thread in Misc

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Keith" wrote in message k...

I have created a macro in an Excel workbook to do various things with a web query, then export one sheet of the workbook as a txt
file. I then get the macro to open Access.

What I am wanting to do is:- I want my macro to, not only open Access, but to open a specific Access Database and if possible, run
a macro within that database to import the data that I have exported from Excel.

Any ideas?

Thanks



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
my data truncates when ported from access to excel Confused access user Excel Worksheet Functions 4 May 13th 05 03:50 AM
Microsoft Access Report into Excel Spreadsheet zeebyrd Excel Discussion (Misc queries) 1 February 27th 05 12:36 AM
How do I get an Access form in Excel to Expand the Data RogerN Excel Discussion (Misc queries) 0 February 25th 05 06:04 PM
Linking Excel to Access. Richard Excel Discussion (Misc queries) 3 February 15th 05 09:55 PM
Managing an Access Database from Excel Kostis Vezeridis Excel Discussion (Misc queries) 2 February 11th 05 05:21 PM


All times are GMT +1. The time now is 11:47 AM.

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

About Us

"It's about Microsoft Excel"