A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Importing data via macro



 
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2007, 07:14 PM posted to microsoft.public.excel.newusers
Liz
external usenet poster
 
Posts: 251
Default Importing data via macro

Hi,

I want to create a macro, which let me automate the process of importing the
data from various files (*.xls) from a particular directory to the main table
in MS Access.

My Main table in access is called Wire Transfer Main table. And every
Monday few specialist go in a share drive and post their completed forms in
..xls format. My macro should go into that shared directory every week and
pull out the files from that directory and copy the data from those files to
my Wire Transfer Main Table in access database.

Please help.

Thanks
  #2  
Old April 23rd, 2007, 09:44 PM posted to microsoft.public.excel.newusers
Duke Carey
external usenet poster
 
Posts: 1,027
Default Importing data via macro

Liz - you're probably better off if you write your macro in Access, not
Excel.

That's not to say you can't do it in Excel. If you create it in Excel,
though, you are going to get into the details of creating an update/insert
query in Excel VBA and looping through each row of data in each of the files
to: a) fill in the query parameters, and b) call the ADODB code to execute
the query

In Access you can just programmatically import each of the Excel files




"Liz" wrote:

Hi,

I want to create a macro, which let me automate the process of importing the
data from various files (*.xls) from a particular directory to the main table
in MS Access.

My Main table in access is called Wire Transfer Main table. And every
Monday few specialist go in a share drive and post their completed forms in
.xls format. My macro should go into that shared directory every week and
pull out the files from that directory and copy the data from those files to
my Wire Transfer Main Table in access database.

Please help.

Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:31 AM.


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