VBA: Copy Data from Daily downloaded Excel Files to a template

TheHack22

Board Regular
Joined
Feb 3, 2021
Messages
121
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi All,

I was wondering if anyone can assist me here. I usually do this process daily, manually. The typical process is to take downloaded files and update a template, which performs calculations on the data, then it's moved to another Place.

Objective: I'm trying to copy and paste data from multiple Excel CSV downloaded files into a template with multiple tabs. The files names(Downloads), would usually match the sheet tab names.

Is there a way in VBA to match the Sheet tab names to the file names and move the data from the downloaded daily files onto the matching sheet tab? See the Screenshot for a visual. I don't have a code that I have tried.

Thanks in advance for your help.
Imran
 

Attachments

  • Example Pic.JPG
    Example Pic.JPG
    152.3 KB · Views: 62

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top