G
Guest
Hey,
I'm not sure how to do this but pretty sure it's possible. I would like to
import 1 to many excel spreadsheets into an Access database but I need to
select only certain columns in the excel files. Below is an outline of what
I'm trying to do:
1. Search a certain folder for Excel files that need to be processed - all
set with this.
2. Import 1 to many files to Processing table. This is where I'm stuck. I
have no problem importing the entire spreadsheet for each file but each
spreadsheet contains 30 plus fields and I only need 5 fields. I would like to
learn how I can query each excel file and import only the fields I need.
3. After importing the data, move the excel files from the Processing folder
to the Completed folder. Haven't started working on this yet but I think I
can figure it out. Any help though would be appreciated!
4. Next, the rest of my steps (essentially OpenQuery steps to create various
tables) are executed. I'm all set with this as well.
So far, I've written step 1 and 2 as a VBA module in Access called
Import_Excel_Files. I have some VBA experience and I believe but could be
completely wrong that I would need to use VBA & ADO to create a query to get
the data I need from the excel spreadsheets. I've never done this before so
I'm looking for a little help!
Thanks
I'm not sure how to do this but pretty sure it's possible. I would like to
import 1 to many excel spreadsheets into an Access database but I need to
select only certain columns in the excel files. Below is an outline of what
I'm trying to do:
1. Search a certain folder for Excel files that need to be processed - all
set with this.
2. Import 1 to many files to Processing table. This is where I'm stuck. I
have no problem importing the entire spreadsheet for each file but each
spreadsheet contains 30 plus fields and I only need 5 fields. I would like to
learn how I can query each excel file and import only the fields I need.
3. After importing the data, move the excel files from the Processing folder
to the Completed folder. Haven't started working on this yet but I think I
can figure it out. Any help though would be appreciated!
4. Next, the rest of my steps (essentially OpenQuery steps to create various
tables) are executed. I'm all set with this as well.
So far, I've written step 1 and 2 as a VBA module in Access called
Import_Excel_Files. I have some VBA experience and I believe but could be
completely wrong that I would need to use VBA & ADO to create a query to get
the data I need from the excel spreadsheets. I've never done this before so
I'm looking for a little help!
Thanks