×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Concatenate Excel spreadsheets in Access?
2

Concatenate Excel spreadsheets in Access?

Concatenate Excel spreadsheets in Access?

(OP)
I recieve 30+ spreadsheets everyday in Excel format. I am looking to find a way to add a set of rows together from all of the spreadsheets. Once I have them all together, I need to be able to sort by different fields to create reports. Does Anyone have any ideas?

RE: Concatenate Excel spreadsheets in Access?

You could probably do something in VBA to open each worksheet on a specified list, copy the relevant data to the appropriate sheet, etc.

TTFN

RE: Concatenate Excel spreadsheets in Access?

(OP)
Is there a way to open each workbook in a specified folder with VBA?

RE: Concatenate Excel spreadsheets in Access?

I don't see why not.  You simply specify the correct path to the file and pass it to VBA.

TTFN

RE: Concatenate Excel spreadsheets in Access?

Use the Dir statement to go through all the .xls files in a particular directory - then you don't need to worry about knowing the names.

CODE

Dim myFile
myFile = Dir("c:\myDirectory\*.xls")
Do While Len(myFile) > 0
MsgBox myFile ' or process here
myFile = Dir
Loop

Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting

UK steam enthusiasts: www.essexsteam.co.uk

RE: Concatenate Excel spreadsheets in Access?

In Access Link to each of the xls files
Then create a query that joins them all together
eg
Select *  from Sheet1
Union All
Select *  from Sheet2
Union All
Select *  from Sheet3

Result - a read only query that shows all records in all the sheets
That can be sorted any way you like in another query.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources