Link to home
Start Free TrialLog in
Avatar of PipMic
PipMicFlag for Gibraltar

asked on

Routine to import

Hi All,

I would like to carry out a routine which imports a number of Excel Files which are held in my Folder (C:\lists) into my Access 2003 programme. All the Excel Files would be appended into the same Table (tbl_all) within my A03 programme.

Grateful if someone would provide me with the vba code to carry out this task at a touch of a button.

Please let me know if my request requires clarification.
Avatar of [ fanpages ]
[ fanpages ]

The name of the worksheets in each MS-Excel workbook, & their individual layout, plus the definition/order of the columns within the [tbl_all] table would be useful.

A sample MS-Excel workbook (if they are all the same, or noting differences, if applicable), & an MS-Access database containing a blank table definition, may also help "Experts" engage with your question.
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That should be:

sFile = Dir("Path to the folder\*.xls")