Forum

Notifications
Clear all

Copy all excel files from a folder to open workbook to sheet 1

2 Posts
2 Users
0 Reactions
78 Views
(@stevenbehr1)
Posts: 92
Estimable Member
Topic starter
 

Afternoon all,

I have got a VBA databse that imports excel files by selecting 1 file from a folder and import the data to a sheet that I got opened.

But what I want to do now is automatically going to a folder selecting all 15 excel files from a folder and range is from A1-L1 and there will multiple lines and import all excel files from sheet1 to the workbook opened to sheet1.

I tried various codes to no end and what like some help on this.

Thanks

Steve

 
Posted : 26/10/2021 4:05 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Steven,

Not sure why you aren't using Power Query to import the data. VBA is the old way to automate the gathering and cleaning of data.

Mynda

 
Posted : 26/10/2021 7:39 pm
Share: