No video

VBA Macro to Copy Data from Another Workbook in Excel

  Рет қаралды 640,984

Excel Campus - Jon

Excel Campus - Jon

Күн бұрын

Пікірлер: 264
@ExcelCampus
@ExcelCampus 5 жыл бұрын
Here's the link where you can download the files I use in the video. Download the Excel file to follow along: www.excelcampus.com/vba/copy-paste-another-workbook/ If you're new to VBA then checkout my free upcoming webinar on The 7 Steps to Getting Started with Macros & VBA. Register here: www.excelcampus.com/yt-vba-webinar Lots of additional links and resources in the description above. Please leave a comment below with any questions or suggestions. Thanks!
@MsQuikly
@MsQuikly 3 жыл бұрын
I think you just saved my internship!!
@im_shaded
@im_shaded 3 жыл бұрын
word bro LOL
@alexgarcia1486
@alexgarcia1486 3 ай бұрын
same hah
@18_moch.januarakbar17
@18_moch.januarakbar17 Ай бұрын
same hah
@DerickPitcher
@DerickPitcher 2 жыл бұрын
WOW! This is exactly what I needed. It seems like you made this tutorial video for me. I just modified it to go through 12 Sheets (January through December) using a For/Next Loop to copy non-blank range then paste values in the next blank row after destination file/sheet is cleared once. Thank you, thank you, thank you.
@darrelljustinlopez4025
@darrelljustinlopez4025 2 жыл бұрын
Just found this today and it helped me a lot to try and automate manual copy and pastes of my teammates. Will be trying to put some of these in a button.
@firststep7750
@firststep7750 3 жыл бұрын
1a) 3:13 - Open/ Close source Workbook 2) 10:02 - Clear Existing Data in destination before Pasting 3a) 7:15 - Copy/Paste below Last Cell in destination Workbook. 3b) 10:36 - Alternate destination Workbook reference. 3c) 11:36 - Copy/Paste below Last Cell in destination Workbook if worksheet name is unknown.
@mikevanwieringen9883
@mikevanwieringen9883 2 жыл бұрын
This tutorial shows exactly what I'm trying to achieve with an Excel project I've started recently...Brilliant ! ;-)
@jrm523
@jrm523 4 жыл бұрын
Thank you very much for this high quality video. You are very detailed and clear in your explanations which helps tremendously. I've been manually copying and pasting data from 12 spreadsheets to a master spreadsheet monthly and am looking forward to automating it.
@norbertfris6018
@norbertfris6018 5 жыл бұрын
Thank you Jon! You've just helped me to become a successful man!
@joshuabrockman7467
@joshuabrockman7467 2 жыл бұрын
I'm working on a project and cam across this video, what you've done will help so many! Thanks so much Jon awesome video Great job Sir!
@nathanaelmouckagni7165
@nathanaelmouckagni7165 2 жыл бұрын
I am so happy with the content of this tutorial, thank you very much Excel Campus !
@MohamedRAMDANI-ri4jp
@MohamedRAMDANI-ri4jp 5 ай бұрын
thank you very much as a newbie at VBA it captured my mind and I got passionate about thank you for your videos
@ExcelCampus
@ExcelCampus 5 ай бұрын
Happy to hear that! 😀
@Akarsh61
@Akarsh61 2 жыл бұрын
Hi John, Required to create multiple files/workbook with the help of 2 master data. Example in Master data file, created 2 seprate files with State and company wise seprate excel sheet/tab. With help of VBA need to create seprate files created in one specific folder with Company wise (also it should have one more tabe with state wise).
@MaStEr994ful
@MaStEr994ful 3 жыл бұрын
Great job, saved me a lot of time! God bless you
@ShaneNickers
@ShaneNickers 2 жыл бұрын
This helped me so much at work. Thank you!
@a.j.wilkes6352
@a.j.wilkes6352 5 жыл бұрын
Thank you for your useful tutorials! I quickly earned "Wizard" status at my new job by writing a macro that copies in data from date stamped system generated files using Application.FileDialog to set workbook variable and your lastrow/range.copy videos.
@ExcelCampus
@ExcelCampus 5 жыл бұрын
Thanks A.J.! And congrats on wizard status. I love it! Sounds like you are able to help a lot of coworkers save time as well. Awesome! Have a good one. :-)
@ClintSevilla
@ClintSevilla 3 жыл бұрын
I am trying to figure out how to do that. Any references to point me to?
@a.j.wilkes6352
@a.j.wilkes6352 3 жыл бұрын
@@ClintSevilla Hello! Honestly since doing this I’ve learned to use the Power Query for data import. That would be worth your time learning. I’m think for this one I used the “Open file” dialogue box and set a range in the destination equal to the raw data. Wiseowl VBA tutorials were a great job off point.
@NeoclassicYT
@NeoclassicYT 2 жыл бұрын
hmm... DUde, what to say this was actually some instructive information! Thank you for explaining the basics!!!!! ❤👍
@FlowerCityCards
@FlowerCityCards 2 жыл бұрын
Very useful & I've incorporated this into my latest video where I've created an awesome tool for the average side-hustler. Thank you!!!
@alperak8580
@alperak8580 4 жыл бұрын
So comprehensive, so successful Learn VBA with Jon Thank you bro, thanks a lot!!!!!!
@guidobusuttil5556
@guidobusuttil5556 3 жыл бұрын
Thanks Jon. Very comprehensive
@alperak8580
@alperak8580 Жыл бұрын
it's fantastic dude thanks you, thanks a lot greeting from Istanbul
@brandyhenderson
@brandyhenderson 2 жыл бұрын
Jon, you’re my new best friend!
@brandyhenderson
@brandyhenderson 2 жыл бұрын
I meant to also say thank you… so THANK YOU!!! You seriously saved me about 3 days worth of work! Between your help and the KuTools add-on that I just got, I’m on fire now! Lol
@tuntunsaw7242
@tuntunsaw7242 4 жыл бұрын
Thank you. You make my life easy to live.
@Omario97
@Omario97 3 жыл бұрын
Very helpful, thank you!
@mbhagyasri88
@mbhagyasri88 3 жыл бұрын
Great video and easy to understand 🙏🙏
@shoebkhan711
@shoebkhan711 3 жыл бұрын
Thank you so much. This is very helpful
@tamilselvan2088
@tamilselvan2088 4 жыл бұрын
Thank you for your good work
@mohamedgenidy1901
@mohamedgenidy1901 3 жыл бұрын
THANK YOU VERY VERY MUCH FOR YOUR PERFECT HELP
@manojnath9408
@manojnath9408 3 жыл бұрын
Great tutorial
@ohdjrp4
@ohdjrp4 5 жыл бұрын
Thanks to Excel Campus!
@aymanejoud8398
@aymanejoud8398 Жыл бұрын
Thank you Mister
@violetnha
@violetnha 2 жыл бұрын
So excited to use this!! :)
@tannbunny1992
@tannbunny1992 Ай бұрын
Thank you for your sharing
@ExcelCampus
@ExcelCampus Ай бұрын
Thanks for watching! 😀
@yogeshbhat1
@yogeshbhat1 5 ай бұрын
Thanks a lot. You made it look so easy.
@ExcelCampus
@ExcelCampus 5 ай бұрын
Glad it helped 😀
@nishantong688
@nishantong688 4 жыл бұрын
Excellent contents, Thank you!
@Sridevi-ht9nj
@Sridevi-ht9nj 7 ай бұрын
Thanks
@wayneedmondson1065
@wayneedmondson1065 5 жыл бұрын
Hi Jon.. great video on various methods of copying and pasting between workbooks. Your sample code and presentation are clear and help me organize my thoughts and the steps to proceed to the solution. Thanks also for providing the sample workbooks to follow along.. very helpful. Thumbs up!
@oumezianeimededdine6980
@oumezianeimededdine6980 4 жыл бұрын
Brilliant ! Thank you so much
@altafbaig6485
@altafbaig6485 4 жыл бұрын
simply excellent !!!
@RS-wk1cz
@RS-wk1cz 3 жыл бұрын
Really, very good.
@jam05eun
@jam05eun 2 жыл бұрын
Thanks! This is helpful. May I know if you have tutorial that will show how to copy only filtered data? Not all data
@ujangsonjaya8348
@ujangsonjaya8348 Жыл бұрын
Excellent
@rziguiaymen7519
@rziguiaymen7519 3 жыл бұрын
Dude, this lesson is soooo awesome, it's exactly what I needed ! thanks a lot, and there we go a new Like and a new subscriber ;)
@undrawingend
@undrawingend 2 жыл бұрын
This has just saved me an hour or more of copy and paste from sheets !, is there a way that this could be used to copy from a range of sheets that all have the same name but different date - eg 11.04.22 do not use to 16.04.22 do not use ? I have a sheet with the date range that is calculated based on workdays and need to collate the data from the 5 sheets and needs to be run each Monday for the previous week I m thinking that the name section could be “* Do Not Use” but this would pull sheet data from more than needed
@hope1922
@hope1922 5 жыл бұрын
Hi! That is a great video, thank you so much for making it! In my case the name of the workbook I copy the data from changes, is there a way to deal with that?
@krishnendughosh2348
@krishnendughosh2348 3 жыл бұрын
Did u get it
@mml3223
@mml3223 6 ай бұрын
Thank you so much
@ExcelCampus
@ExcelCampus 6 ай бұрын
You're welcome 😀
@juhainaahmed6090
@juhainaahmed6090 3 жыл бұрын
Hi Jon.Thank you for this video. It saved me a lot of work.. How can I copy the data from the other sheet while keeping the same format?
@juhainaahmed6090
@juhainaahmed6090 3 жыл бұрын
i have some images in my sheet which are not getting copied and also the text box text size gets bigger when i copy it to the current sheet
@lotto009
@lotto009 3 жыл бұрын
Thank you for share
@TheGamer-we2br
@TheGamer-we2br 11 ай бұрын
Perfect brother
@ExcelCampus
@ExcelCampus 11 ай бұрын
Thanks, @TheGamer-we2br ✌️
@mokongx3m
@mokongx3m Жыл бұрын
Is it possible to have a prompt appear to allow end user select the file from a file browser to copy from so it is not hardcoded in the macro like if they might be copying from a different file each time?
@AliTwaij
@AliTwaij 4 жыл бұрын
Brilliant thankyou
@selvan1264
@selvan1264 Жыл бұрын
Thanks for the nice video. This is useful. May I check how to copy only new rows [there maybe more than 1 new row] from source excel, if only those rows are not found in the destination excel file and matches criteria [eg. West region]? Thank you Merry Christmas and happy New year
@oguzhanalp5456
@oguzhanalp5456 3 жыл бұрын
amazing
@helenshanmugam3768
@helenshanmugam3768 5 жыл бұрын
Thank you for the very detailed and precise video and code. I managed to solve my problem.
@byakb1868
@byakb1868 6 ай бұрын
Great video. Is it possible to send the selected information to a defined sheet in the recieving workbook? For example, my original data was collected on a Monday (I can have a cell value equal to the day, as a reference), and I want to copy it to the "Monday" sheet in the new workbook. Then i will collect new data on the Tuesday, which i want to send to the "Tuesday" sheet. Ultimately, the new data will have a reference, this will be transferred to the new workbook in the sheet labelled with the same reference.
@thebesttechnical3608
@thebesttechnical3608 4 жыл бұрын
Thanks for sharing a good and fast way.
@GuruDanny
@GuruDanny 4 жыл бұрын
Thank you John for a well paced video with all the steps described and covered. I ended up here while searching on how to "SET" an open workbook's (file) name to a workbook variable and later copy some contents to another open file. Watching this video, I think I can use "Set MyWorkBookVariable = Workbooks(FileNameVariable)". I will test/check this later. In any case, I got more than I asked for. You have pretty much all of the things in this video which I was trying and thinking to implement in the current project I am working. So thanks a lot for great ideas and very helpful video. I will be watching your another video regarding Personal Macro Workbook. Your efforts and help is very appreciated.
@Rachad2317
@Rachad2317 5 жыл бұрын
Thanks Jon for the helpful tips. Putting it to work right away :)
@ExcelCampus
@ExcelCampus 5 жыл бұрын
Awesome! Thanks Rachad!
@nkcf4889
@nkcf4889 2 жыл бұрын
Great Video! How would you copy and paste above an existing range?
@Buenomars
@Buenomars 3 жыл бұрын
Instead of pasting below the last row cell, what should I change for pasting right next to the last column cell?
@ibrahimasgarli7385
@ibrahimasgarli7385 4 жыл бұрын
Hi, Thank you for the video, was very helpful. Just one comment/question. I guess there should be no filters/all filters cleared in the the source file/sheet where the info is copied from. otherwise the code copies only filtered data.
@user-vb3sf1hp2i
@user-vb3sf1hp2i 2 жыл бұрын
Hi how can we insert row with some data in same sheet Example I have make a table and I want to insert same table below it by clicking one button I hope you can answer me
@connorloze5418
@connorloze5418 9 ай бұрын
Hey Jon - would you have the knowledge on how to pull data from multiple xlsm's that have merged cells and dropdowns into a master workbook using vba?
@shaikhmohammedriyazbasha7331
@shaikhmohammedriyazbasha7331 2 жыл бұрын
Dear Sir, your VBA is excellent, but I need a code for pasting a text in the specified cell of another work books (650 qty) in a folder through a message box (=should ask range) while pasting.
@vijaysahal4556
@vijaysahal4556 4 жыл бұрын
nice
@jonnabelleyulo117
@jonnabelleyulo117 4 жыл бұрын
Thanks Jon. Very useful. How about copying the data and pasting it in the other worksheet depending on the date today
@MultiBodmin
@MultiBodmin 4 жыл бұрын
Thank you, Jon, for your video. I am starting a new project at work, and this video showed what I needed for part of it. My question is, how can I take a look at your webinar? The portal provided in the link doesn't offer any date or time choices for me to use to sign up to watch the video.
@mohammadshakeelsharif345
@mohammadshakeelsharif345 2 жыл бұрын
Hi, this is very helpful. thank you. Just one question, when pasting the data where would you include paste special to just paste values. thanks
@user-sm8zm6ct3h
@user-sm8zm6ct3h 6 ай бұрын
hi, the video is good but I have a question. what can you do if the workbook that you are copying from changes the name or the file format? thankyou
@rishabhsaxena9858
@rishabhsaxena9858 3 жыл бұрын
Hello, very helpful video. I get data in raw format I have to prepare that raw data in a particular format. How to copy data in row A and get the same pasted in row B using VBA.
@fikriasyrafi8121
@fikriasyrafi8121 4 жыл бұрын
This so great. thanks a lot for sharing this videos!
@srikanthchitturi7283
@srikanthchitturi7283 2 жыл бұрын
Hi, Great video. I have a question, I have the similar scenario. I have a table with data and I need to clear the data before adding new data from other workbook, I am able to do, but, while deleting, it leaves one row and when we copy new data, it leaves the first row as blank. Not sure, how to solve this. If you could help me, it will be great. Thanks in advance.
@nsanerydah
@nsanerydah 4 жыл бұрын
Jon I just stumbled onto this video after spending over 12+ hours of watching multiple KZbin authors show how to import a range of data from multiple workbooks into a "master file" workbook. I am an extreme beginner trying to build a new system to be used at work, but after accomplishing everything else I needed, this (import/copy) is the wall I'm struggling to get over. Does your method allow for the copying of multiple workbooks using the copy/paste below last cell method? Any assistance (or direction pointing) would be greatly appreciated. Thank you for your time and hard work.
@ushaa1026
@ushaa1026 16 күн бұрын
How do I copy specific person data from one worksheet to another worksheet??? Also with varying range.
@markjosephlobete2563
@markjosephlobete2563 Жыл бұрын
Thanks for the video, just want to ask how about a vba for different workbooks name?
@daudapriwaluyo98
@daudapriwaluyo98 4 жыл бұрын
Why i cannot run the very first copy (open thype) it keeps say "the object doesn't support this property"
@nosrednawyt
@nosrednawyt 2 жыл бұрын
Great vid! I need to copy and paste info from 4 worksheets inside a workbook to MULTIPLE workbooks that are basically identical to the one I'm using to copy the info from, I just need to update some formulas. The problem is, I need to do this with 300+ workbooks, is it possible to bulk copy and paste all this info to the specific range I need in an automated way ? I was doing it manually, but it's taking forever, and I need this done ASAP for work, can someone help me out ? thnxxx
@matthewfawaz2247
@matthewfawaz2247 3 ай бұрын
Hi, thanks for the great video, I am copy pasting info to a file where I am unable to access some squares and a block message pops up, is there a way for the VBA to bypass this and continue running the code? Thanks!
@luisjoaquinavalosguzman3661
@luisjoaquinavalosguzman3661 4 жыл бұрын
Thank you!, :)
@pragas4288
@pragas4288 Жыл бұрын
How do we bind values in column wise, ? Like find empty column and paste the value..
@nandogarza7841
@nandogarza7841 3 жыл бұрын
Thanks for this video, it is very helpful. By any chance do you have any video explaining same topic but what Im looking for is to copy a value by looking referencing to dynamic data, such as dates... if you are on a certain week then copy certain row, then if the week changes copy and paste another row and so on... so ranges will change but date will bw the main input...
@whatifsolutionsarefasterth2358
@whatifsolutionsarefasterth2358 3 жыл бұрын
Sir please create video in excel 2007, where through vba code , can retrieve all sheet name from each file from folder and subfolder i.e indexing. Secondly copy specific columns from each identified sheets
@keshavkeshu5321
@keshavkeshu5321 Жыл бұрын
Hi sir Copy/paste below last cell in destination workbook can we create for different sheets data for this copy paste below last cell
@NiteRam
@NiteRam 5 жыл бұрын
What if I just want to transfer 1 selected row to another workbook?
@Rasmuskvejborg
@Rasmuskvejborg 4 жыл бұрын
What if you want to copy something from a downloaded excel report? You can't be sure its always the same name.
@corysmith4569
@corysmith4569 2 жыл бұрын
How do you hot key a macro without using the record feature? I always have to record first, then go in and use that sheet before I start coding. Will the mode be dependent on workbook? or can transfer the script over to another computer and have it run there with the same hotkey?
@aarondumapias6084
@aarondumapias6084 Жыл бұрын
Hello! is there a way to copy paste the selected cell only in another workbook?
@md.saifulislamtuku9303
@md.saifulislamtuku9303 5 жыл бұрын
Sir, I think I created a document and gave it to one person that he would not be able to do that document after a given date or time. If the system of such lock can be done in "XL". If it is, then it will be beneficial if you create a tutorial on that topic. Thank you
@QQ-nb2ic
@QQ-nb2ic 5 жыл бұрын
1338, I copied thos code exact and it comes up subscript out of range
@marcelitopacaldo9952
@marcelitopacaldo9952 2 жыл бұрын
Thank you very much for this insightful video. However, I would like to ask if we can create a macro formula under paste active workbook using the reference that is displayed in a specific excel cell. By using this, we can easily change the path or reference by editing it in the cell instead of updating the macro.
@petetartaro
@petetartaro 2 жыл бұрын
Say I have multiple data sheets and I want to copy each of them into a separate output workbook. Is there a way to automate copying each one into a separate templated workbook and save them separately?
@jokiab
@jokiab 5 жыл бұрын
Thank for the video Jon! It was really good explained. I have a question I hope you can answer. Let’s say that the workbook you are copying from changes name. How will that be updated automatic? E.g. Let’s say the code runs in your Reports.xlsm. You then have 3 workbooks in a folder: New Data1.xlsx New Data2.xlsx New Data3.xlsx The name of the workbooks will appear in cells in workbook report.xlsm. Like in A1 we have "New Data1.xlsx". A2 we have "New Data2.xlsx". A3 we have "New Data3.xlsx". How will the code: Workbook("New Data1.xlsx") automatic change the name for a new workbook given by a cell? Let’s say, that the name of the data workbooks is dynamic? Thanks
@jokiab
@jokiab 5 жыл бұрын
@@bukharrysafri9399 hey dude, I have not. But I'm working on it. I can let you know if I find a solution?
@benjamindominguez1922
@benjamindominguez1922 5 жыл бұрын
Thank you, this is fantastic help.
@pipo441
@pipo441 Жыл бұрын
Hi Jon, how about copy and paste a workbook with a VBA. Will it work? I ask you this questions because I noticed there are duplicates Alt + F11 at the right in the VBAProject properties.
@huynhdang2441
@huynhdang2441 4 жыл бұрын
Thanks you so much! What is the code to copy and paste from multiple workbooks??
@tannertucker22
@tannertucker22 5 жыл бұрын
Another stellar tutorial! How can I edit the code to insert the copied data into the second row of a table please? Thank you.
@dannyblazer4325
@dannyblazer4325 5 жыл бұрын
Tanner, like: ws.usedrange.copy ws2.Range("Table1").Rows(2) Danny, excelvbadude
@tannertucker22
@tannertucker22 5 жыл бұрын
@@dannyblazer4325 Thank you.
@priyankamastakar5419
@priyankamastakar5419 17 күн бұрын
What if I have multiple tabs to copy from one Excel workbook to another Excel workbook?
@ka-techarastrmac633
@ka-techarastrmac633 4 жыл бұрын
Thank you for your video and explanation. But when we select folder and open workbooks with different name with macro, that is, workbook name and also rows are variable, what macro code should we use? Thanks in advance...
@tonygardner282
@tonygardner282 2 жыл бұрын
can it be done with a command button rather than the F keys
@barryc7443
@barryc7443 5 жыл бұрын
Hi Jon or anyone, not sure why the first line works perfectly but when i put the file in a network folder and reference it like on the second line it gives an error 9. Set wsCopy = Workbooks("New-Data.xlsx").Worksheets("Export 2") Set wsCopy = Workbooks("\\NetworkFolder\New-Data.xlsx").Worksheets("Export 2")
@barryc7443
@barryc7443 5 жыл бұрын
Does anyone know how to solve my issue , many thanks
@Ser910m
@Ser910m 5 жыл бұрын
@@barryc7443Hi! If you have the file already open, remove the reference to the network folder, leave the file name only Set wsCopy = Workbooks("New-Data.xlsx").Worksheets("Export 2") If you want the file to open when you run the macro, use the macro Jon has in the file to do just that! Hope it works, it did for me! Regards
@dataanalytics3994
@dataanalytics3994 2 жыл бұрын
can we create a loop to do this on a folder? I just have about 14 excel files that are identical in a folder that need to be put into one file
VBA Advanced Filter - The FASTEST way to Copy and Filter Data
18:33
Excel Macro Mastery
Рет қаралды 280 М.
How to Copy Data from Another Workbook in Excel Using VBA
29:09
Essential Excel
Рет қаралды 41 М.
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 6 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 562 М.
VBA Macro to Copy Data to Another Workbook
10:30
Excel Destination
Рет қаралды 70 М.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 181 М.
Copy Filtered Data To New Sheets Excel VBA Macro
5:03
Excel Macro Mania
Рет қаралды 43 М.
5 Excel Tools Most Users Never Think to Use (Files Included)
12:34
MyOnlineTrainingHub
Рет қаралды 200 М.
The Ultimate Guide to Copying Data using Excel VBA
31:05
Excel Macro Mastery
Рет қаралды 66 М.
VBA to BROWSE & COPY Data from SELECTED File in Excel
10:00
Leila Gharani
Рет қаралды 328 М.
Excel VBA: Copy Data Between ANY Two Sheets
12:56
Excel Macro Mastery
Рет қаралды 120 М.