Excel macro to combine CSV files (Using Excel VBA)

preview_player
Показать описание
In this Excel automation tutorial, I will show you how we can write a macro (using Excel VBA) to combine multiple CSV files.

Imaging your boss asks you to combine 10 or 50 CSV files by the end of the day, and you only have couple hours left. If you are going to do this task manually, it will takes a few hours. However, if you can automate this task, then everything can be done in let's say 5 minutes.

Buy Me a Coffee? Your support is much appreciated!
----------------------------------------------------------------------------------------------------------------
Venmo: @Jie-Jenn

Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

#ExcelVBA #MergeCSV #CombineCSV #ExcelAutomation
Рекомендации по теме
Комментарии
Автор

The line 1, xlNo isn't working correctly for me. Instead of removing duplicates, it removes everything after the first CSV that was imported. Any Idea why?

IcanCwhatUsay
Автор

Hi Jie, can you change the delimiter in VBA from, to ;?

markamadeus
Автор

Thanks Jie! I'm a beginner with Visual. My question is if I add additional CSV files to the folder, do I run the macro again to add the new CSV info? Will it duplicate the files I already merged into the Excel worksheet?

tj
Автор

Hi Jie, how can you use this macro but also have it add a column with the name of each CSV file you combined?

rachelhoams
Автор

Csv files not found comes out what should i do? Please help me

ochirgereltbyambasuren
Автор

Hey, why do i get Subscript out of range? Can you please help? on this

Set data_sheet =

namanjain