Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nuti
 
Posts: n/a
Default data import and export in to access

Hello group,

I want to know the Code which exports data to an Access table
from an Excel worksheet and the code which imports data
from an Access table to a worksheet.

i want to run it as a macro .

Please help me with this problem.

cheers
Nuti


  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default data import and export in to access

Hi

I am working on a webpage about this and hope to finish it next week

You can look here for information
http://www.erlandsendata.no/english/...php?t=envbadac




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


"nuti" wrote in message ups.com...
Hello group,

I want to know the Code which exports data to an Access table
from an Excel worksheet and the code which imports data
from an Access table to a worksheet.

i want to run it as a macro .

Please help me with this problem.

cheers
Nuti




  #3   Report Post  
Posted to microsoft.public.excel.misc
nuti
 
Posts: n/a
Default data import and export in to access

Hi Ron,

I have visited the link.
But it is throwing error.-----runtime error 3265

please help me out.

cheers,
nuti

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default data import and export in to access

Have you set the reference in the VBA editor and are the File, Table and field names correct in the code

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


"nuti" wrote in message oups.com...
Hi Ron,

I have visited the link.
But it is throwing error.-----runtime error 3265

please help me out.

cheers,
nuti



  #5   Report Post  
Posted to microsoft.public.excel.misc
nuti
 
Posts: n/a
Default data import and export in to access

what shuold be the reference?

correct me if iam wrong---
---does the code take the excel sheet which is open/from the excel from
which the macro is run?



  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default data import and export in to access

what shuold be the reference?

From the website :

The macro examples assumes that your VBA project has added a reference to the ADO object library.
You can do this from within the VBE by selecting the menu Tools, References and selecting Microsoft ActiveX Data Objects x.x Object
Library.
Use ADO if you can choose between ADO and DAO for data import or export.


correct me if iam wrong---
---does the code take the excel sheet which is open/from the excel from
which the macro is run?


It use the active sheet but you can include the sheet name if you want

Range("C1")

' Example: ADOImportFromAccessTable "C:\FolderName\DataBaseName.mdb", _
"TableName", Range("C1")



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


"nuti" wrote in message ups.com...
what shuold be the reference?

correct me if iam wrong---
---does the code take the excel sheet which is open/from the excel from
which the macro is run?



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
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Export address list data in an Excel worksheet for importing into. ACR/HJG Excel Discussion (Misc queries) 1 April 15th 05 11:43 PM
How to export excel column into Access without losing the leading. yesterdaytoday11 Excel Discussion (Misc queries) 5 March 23rd 05 03:09 PM
How do I import MS Project data into Excel? mk Excel Discussion (Misc queries) 0 March 16th 05 04:23 PM
Import Excel Data from another workbook or file tamato43 Excel Discussion (Misc queries) 1 February 28th 05 05:26 PM


All times are GMT +1. The time now is 03:55 AM.

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"