How to Combine Multiple Excel Files using VBA

  Рет қаралды 36,868

Excel Macro Mastery

Excel Macro Mastery

Күн бұрын

Пікірлер: 66
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Let me know, in the comments below, which method you found most useful. Make sure to download the source code from the description below the video.
@karl-heinzlutzel9585
@karl-heinzlutzel9585 2 жыл бұрын
Paul, as always a great application. You explain this really super. I think it's great that you show the way over the individual functions or subs. Simply how it should be done professionally.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
@@karl-heinzlutzel9585 Thanks. Glad you like it.
@yashchawla8360
@yashchawla8360 2 жыл бұрын
Any way to write dictionaries with classes in one go?
@miless2111sutube
@miless2111sutube 2 жыл бұрын
Given you had to select something to make the dictionary work does any user need to do the same to be able to run the code?
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
@@yashchawla8360 No. The reason you can do with basic data items is because they are stored as an array.
@mtotowamungu8259
@mtotowamungu8259 2 жыл бұрын
I like your new Camtasia video style, you can see that you put a lot of effort into it. I also like that your videos are more relaxed again (easier to understand for non-native English speakers). Thanks a lot Paul
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks. Glad you like it.
@budiyanto1531
@budiyanto1531 2 жыл бұрын
Paul always shows me A lot little things with the New and simpliest way which is the Best thing to write codes. Thank you Paul. The next thing I would like you to teach me how to make an application complete with its relational databases connected each other. And offcourse, like always, the simpliest way and the fastest aplications.
@alexrosen8762
@alexrosen8762 2 жыл бұрын
Super useful tutorial Helps to improve and streamline automation of work processes.
@joaocustodio2094
@joaocustodio2094 2 жыл бұрын
Paul, congratulations. Another great video.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Joao
@inigosanchez-ostizchivite5441
@inigosanchez-ostizchivite5441 2 жыл бұрын
I know almost every object you use but the very reason I watch your videos is because I learn a lot on how to create clean and comprehensive code. I appreciate the work you do.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks
@grzegorz2852
@grzegorz2852 2 жыл бұрын
man, u are a hero! Thank you very much for this super useful tutorial. i learn a lot from you
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks
@henrycullen950
@henrycullen950 2 жыл бұрын
This is exactly what I have been searching for :)
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Glad you like it.
@tomharrington1453
@tomharrington1453 2 жыл бұрын
Dude, there is a LOT in this video. Excellent job.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Tom
@dangreen2501
@dangreen2501 2 жыл бұрын
I went from not knowing anything about VBA coding to being able to understand what you are saying in this video the first time through. The W.W.W is amazing and people like you make it easy to learn new and amazing things. I started out just wanting to create a program that would automate some B.I. Reports I used daily and it has turned into a full blown application that does it all! I advise anyone with the desire to learn VBA to learn from folks like Paul. Thanks dude, you’re awesome!
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Dan. I appreciate the feedback.
@vincentlee7995
@vincentlee7995 4 ай бұрын
Thanks Paul. Just know using sub ReadData can pass back data
@SyedMuzammilMahasanShahi
@SyedMuzammilMahasanShahi 2 жыл бұрын
Thanks for this video.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
You're welcome
@gewe2508
@gewe2508 2 жыл бұрын
Great video, fantastic wotk. It would be better to do something with VBA that cannot be achieved by a very quick get & transform solution though....always good to learn VBA, but with examples that makeore sense....
@bondniko
@bondniko 2 жыл бұрын
Very useful.
@teddyted04
@teddyted04 2 жыл бұрын
Very neat. At the moment, I would say all methods described are useful. Can you clarify one? From WriteData, shAll it gives an error on compilation: "Variable not defined". Would you kind enough to explain? How about the Reference > Microsoft Scripting Runtime. Where is that coming from? Thank you kindly.
@syahmiirfann439
@syahmiirfann439 5 ай бұрын
why i add watches at 7:50 it says out of context
@sedataksakal414
@sedataksakal414 2 жыл бұрын
Süper çok güzel bir uygulama. Teşekkür ederim.
@VBAbyMBA
@VBAbyMBA Ай бұрын
Neither FSO nor Dir ensures that files are retrieved in the correct sequence. What is the proper way to list files in the correct order, such as: 1.jpg 2.jpg ... 9.jpg 10.jpg 11.jpg? what if, I want to stick to the Dir so that it can be used in MacOS as well?
@rockyrkt6293
@rockyrkt6293 2 жыл бұрын
I want create a VBA tool for collecting data from different Excel to one like same, but for flexible for all types of data like may be sometimes raw and column are changed
@maciejdolinski2603
@maciejdolinski2603 2 жыл бұрын
Hi Paul. It's great video. As every that you create. Thank you. Anyway, why do you use intermediate table to temporarily keep data from source worksheets instead of copying directly from source sheet to destination sheet using e.g. Advanced Filter? Is it faster or is it to make the code ore readable?
@HachikoLostdog
@HachikoLostdog 2 жыл бұрын
Very useful and precise as always. Paul could you expand this a little bit further say i have a huge range of data set and i want to get the uniquue names and ids per employee and get the total data they have on the table
@gunasekaran4288
@gunasekaran4288 2 жыл бұрын
You Re one of the best developers in this filed sir. Also kindly share work book along with code for my testing. Unable to download this code in browser
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Make sure you're not using any popup blockers. Code should download fine.
@gunasekaran4288
@gunasekaran4288 2 жыл бұрын
@@Excelmacromastery ok sir. Thanks do you have any online training available. I would like to learn from you. But cost if affordable for me...plz.let me know your thoughts sir
@gunasekaran4288
@gunasekaran4288 2 жыл бұрын
Any update
@ziadsemaan5669
@ziadsemaan5669 2 жыл бұрын
Hello. New to the channel here. Quick question: if the data is jagged what should we use instead of .CurrentRegion
@Tom-kd3xc
@Tom-kd3xc 2 жыл бұрын
Hi! Thanks for the video. What about when only the names of the columns are known?
@Tom-kd3xc
@Tom-kd3xc 2 жыл бұрын
I mean, what if we don't know the order of the columns, but only know their names?
@pezad4187
@pezad4187 2 жыл бұрын
Use Worksheet.Match function to determine the index
@maddinenirajeshbabu3143
@maddinenirajeshbabu3143 2 жыл бұрын
Thanks very much paul, Actually i am having one query when we are running the macro we can't work another excel work how to over come this issue even macro is running we have to work parallel another work also is there any way to over come this problem? Thanks in advance Paul.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
I'm not really clear on your question. Are you referring to multi threading? If so, it's not possible in VBA.
@VipulKarkar
@VipulKarkar 2 жыл бұрын
As Paul mentioned multi threading is not possible in excel. The very first thing, you should look into, is optimising the macro so it doesn't run for hours. I follow a convention where If any macro is running more than 3 minutes, I try to re-write, refactor and optimise the code in more efficient way. I hope that helps.
@hammeedabdo.82
@hammeedabdo.82 2 жыл бұрын
Hi Paul, Thank you for this video. I want to make a dictionary, so that it contains huge data, so that when I add new sentences to this dictionary, this data must be stored in one of the databases such as Mysql. My question: Is it possible to use Excel as a front-end in order to display this data from the Mysql database, and when we add new sentences it will be stored in the Mysql database?
@francsreal7437
@francsreal7437 Жыл бұрын
I have been following your steps..yet it does not locate the xlsm file i am looking in a folder..
@thofiktufel
@thofiktufel 2 жыл бұрын
I think Power Query would be better to use here. Can you please explain why choose VBA over PQ for this task ?
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
See the Power Query version of this task here: kzbin.info/www/bejne/nqSlfKyDaa2Ar6M
@Thegingeranator
@Thegingeranator 2 жыл бұрын
I'm curious how reliable these vba codes over the course of time, do they break A lot with updates? is it smart to combine excel formulas with VBA?
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
The code doesn't break with updstes.
@Rain_theGamer
@Rain_theGamer 3 ай бұрын
Are you dumb? VBA is literally excel
@nkememes1637
@nkememes1637 2 жыл бұрын
Hello sir, How can i Split a ( 1 Million of rows) large file into 10 small files using VBA macro without filterring dara please help me to code for this problem
@Ghulammuhammad360
@Ghulammuhammad360 2 жыл бұрын
soft source?
@meniporat3527
@meniporat3527 2 жыл бұрын
Hi Paul, Thank you for an excellent explanation. Unfortunately, the source code file cannot be downloaded 😞
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
What issue are you having with the download? Make sure to turn off any popup blockers.
@sangramkeshary5850
@sangramkeshary5850 2 жыл бұрын
Hi I'm getting error in WriteData() on newRow declaration that "Variable not defined" Could anyone please help me on this?
@JD-kp4dp
@JD-kp4dp 2 жыл бұрын
How about the opposite, one master file sending data to hundreds of separate files?
@vishalmastud9256
@vishalmastud9256 2 жыл бұрын
GOOD LUCK
@anhnhatnguyet4628
@anhnhatnguyet4628 2 жыл бұрын
The files in the folder have the same structure, file A has 1 sheet, file B has 2 sheets, file C has 3 sheets. Need to create a file D with only 1 sheet with all data of 6 sheets, use VBA, how to do it?
@alexeiofp
@alexeiofp 2 жыл бұрын
I am light years away from understanding this level of code. What book do you recommend to start with?
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Hi Alexis, I would recommend starting with this tutorial (excelmacromastery.com/vba-tutorial-1/)
@hammeedabdo.82
@hammeedabdo.82 2 жыл бұрын
The other question: How can we divide an excel file into several files? We need another video to reverse this process: How can we divide this excel file in this video again into several files?
@Rain_theGamer
@Rain_theGamer 3 ай бұрын
Well this would have been a cool tut but you started off with random code that you don't explain the use of and don't explain what to put before you just go into the other stuff. That's bull.
How to get the Last Row in VBA(The Right Way!)
15:41
Excel Macro Mastery
Рет қаралды 170 М.
The Ultimate Guide to Copying Data using Excel VBA
31:05
Excel Macro Mastery
Рет қаралды 72 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
EASILY Combine Multiple Excel Sheets Into One With This Trick
8:48
Kenji Explains
Рет қаралды 412 М.
Reduce VBA Errors by 90% (with this little-known Method)
16:59
Excel Macro Mastery
Рет қаралды 59 М.
Copying Data from User Selected Files Using GetOpenFilename
10:26
Excel Macro Mastery
Рет қаралды 22 М.
Excel Macro to combine multiple Excel Workbooks
7:45
Ajay Anand
Рет қаралды 29 М.
How to Combine Multiple Excel Files using Power Query
9:57
Excel Macro Mastery
Рет қаралды 18 М.
How to Merge Excel Files (Without Using VBA) - 4 Easy Ways
9:04
Excel University
Рет қаралды 235 М.
Excel VBA: Using Class Modules with Collections (5/5)
13:37
Excel Macro Mastery
Рет қаралды 72 М.
The Million view clip on China's Tiktok P2428 #shorts #gochannel
0:15
Go Channel TV
Рет қаралды 29 МЛН
Самые простые строительные леса
0:54
Канал ИДЕЙ
Рет қаралды 1 МЛН
Making of Marble in Factory #shorts #ashortaday #indianstreetfood
0:59
Indian Food Vlogs
Рет қаралды 6 МЛН
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
The Million view clip on China's Tiktok P2428 #shorts #gochannel
0:15
Go Channel TV
Рет қаралды 29 МЛН
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51