Excel VBA: Copy Data from one Sheet to Another (Absolute Vs. Relative Macro Recording)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 375

  • @LeilaGharani
    @LeilaGharani  7 месяцев назад

    Grab the file I used in the video from here 👉 pages.xelplus.com/vba-copy-data-file

    • @itisrahul1706
      @itisrahul1706 3 месяца назад

      This link doesn't work after I enter my details. Could you please check?

  • @Pankaj-Verma-
    @Pankaj-Verma- 5 лет назад +46

    You might not know but you are great at what you do. May your future be the Brightest. Thank you for bringing such incredible knowledge to us.

  • @MsThing81092
    @MsThing81092 4 года назад +4

    I have watched a lot of videos on excel formulas and vba macros, and you are by far the best at explaining these concepts and methods in a way that sticks. When I'm writing formulas or macros, I hear you in my head -- like when I'm writing an Index Match formula. Thank you for all of your wonderful videos! ♡

    • @LeilaGharani
      @LeilaGharani  4 года назад +2

      Many thanks for the kind feedback. I'm glad you like the videos :)

  • @wmfield152
    @wmfield152 4 года назад +4

    I just ran across this video while searching for something else. It so happened that I needed to do this very thing in my current project. I don't believe I would have been imaginative enough to record absolute and relative in one procedure. Not only does it get the job done, it is simple and uncluttered. This was a big help. Thanks again L!

  • @gouravkohli4573
    @gouravkohli4573 4 года назад +4

    Omg!! your voice is just harmony to my ears thanks for all these pro videos

  • @dontbeafraid5313
    @dontbeafraid5313 5 лет назад

    You are the only lady teacher I am listening to right now. Easy to follow

  • @thomasguiavarch1506
    @thomasguiavarch1506 2 года назад

    You just gave me a solution of a problem I'm trining to solve from three entire days of research on forums and RUclips videos. Many thanks 🙏

  • @MIrshadIqbalRao
    @MIrshadIqbalRao 4 года назад +1

    No doubt its a Great work,
    Till today I use the below technique to perform this job
    Range("A8").Select
    Selection.End(xlDown).Select
    a = ActiveCell.Column
    b = ActiveCell.Row
    Cells(b + 1, a).Select

  • @tsgtwright1437
    @tsgtwright1437 6 лет назад +2

    Outstanding Ms Gharani. I've learned so much from you over this past 18 months

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      I'm very happy to hear that. Thank you for your support over the past 18 months :)

  • @Ssam33r121
    @Ssam33r121 5 месяцев назад

    I like her way of talking. I wish I could be like her. She explains in a way that I really like. Thanks Ma'am.

  • @jeanroldson
    @jeanroldson Год назад +1

    This is a great explanation. This is what I needed. You explain the differences and logic of how they work.

  • @theterracegardeningchannel5539

    Anytime i need a solution to any Excel Problem this is the place i find the perfect solution i need.. Thanks a ton :) :)

  • @nattawut_chatwiriyacharoen
    @nattawut_chatwiriyacharoen 4 года назад +1

    Thanks Leila. I like the way you explained techniques. It's easy to understand, and your method is cool.

  • @bhupeshatpune
    @bhupeshatpune 2 года назад

    Hello Ms. Leila, you are one of the best teacher I have seen. Thanks lot for tutorials.

  • @rakeshkumarmadella7955
    @rakeshkumarmadella7955 2 месяца назад

    Hi Leila, thank you for so much you are the best teacher we can ever have... I love this channel a lot... i learned many things from you channel and download the sheets and working on it every day.. God bless you abundence

  • @1gopalakrishnarao
    @1gopalakrishnarao 6 лет назад +2

    Thank you Madam, long pending work just materialized, Your way of explaining the things is very beautiful, simple and memorable. Thanks a lot. Waiting very eagerly to learn some more tricks/tips/techniques. You are very lucky, many many followers are appreciating your great work and the love for Excel is growing everyday. BIG SALUTE

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you very much Gopala - Yes - finally macros and VBA :) I'm glad the love for Excel is growing every day. I appreciate your support and the support of all other followers.

    • @1gopalakrishnarao
      @1gopalakrishnarao 6 лет назад +1

      Thank you very much Madam

  • @priyaa0512
    @priyaa0512 6 лет назад +2

    Really loved your narration n crisp clear explanation with calm tone.Great job!👍 Thanks for the new chapter

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome. Thank you for your comment. I'm glad you like the pace of the tutorial.

  • @fahadhassan3291
    @fahadhassan3291 6 лет назад

    Awesome Explanation. Many months before i started learning VBA Excel but couldn't successful because explanation of that man was not looked professional and he use just Inputbox and msgbox to show results of coding.
    Now you are teaching EXCEL VBA and i hope, i will learn perfectly and professionally. as i learned before INDEX, match, offset and their techniques to use.
    Thank You so much for great Explanations.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you Fahad! I'm very glad to hear you find the explanations easy to follow. It took me a while to add VBA to my courses, because like you say, it's a difficult topic to teach. It took a lot of thinking in creating and defining the outline and flow of the course. I'll share what I can on RUclips as well. Just now I posted a video regarding range references. If you're interested, check it out. Wish you all the best with your learning.

    • @fahadhassan3291
      @fahadhassan3291 6 лет назад

      Thank You so much for suggesting. Last night i saw all your 3 videos on VBA and also practiced. You cover many important things as for beginners. I didn't learn many month ago enough that you cover in one video. Keep it up. Great Work. Very Happy To Learn By You.

  • @pratikborkar
    @pratikborkar 4 года назад +1

    Haven't seen any best teacher than you, looking froward to watch all the vids on ur channel

  • @robvillegas216
    @robvillegas216 Год назад

    You rock Ms Excel. You save me a lot of time an effort and not to mention. just sent my work in. You're a Godsend

  • @amitfore
    @amitfore 4 года назад

    The Most valuable Video for a Beginner who wants to learn how to run Macro in Excel. Thanks for the this awesome lecture.

  • @09shirish
    @09shirish 6 лет назад +1

    i'm learning excel from you. You are my Master to develop me. I learn so may ideas from you (its 40-50%), its better for me. How can I told you, their is no words to say ! I cannot speak and write good english, but from your tutorial i can something to write and speak english, i'm leaving in tribal area. So mam thanks a lot. Mam now a days from your tutorial i'm interested in basic VBA.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you so much for your very nice message Shirish! I'm very happy to hear you find the tutorials useful. Thank you for watching and for your support.

  • @osamsadsamir2848
    @osamsadsamir2848 10 месяцев назад

    Damn, after one video i'm the best VBA user of my organization 😂
    Can't imagine when i finish all your videos
    Thanks so much Great Teacher Leila

    • @LeilaGharani
      @LeilaGharani  10 месяцев назад

      Haha, that's awesome! 😄 Glad the video was helpful. Keep learning!

  • @MohammadAshooryan
    @MohammadAshooryan 6 лет назад

    you have a well way to teach excel and now vba too,with simple example and step by step, I learn from you for doing better in writing formula and now i'm trying to learn vba.with youre first lecture about know how and when turn on/off relative reference in recording macro.this is the good start to learn it, I see what happend when i do somthing.very very thank you.

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      I'm really happy to hear that Mohammad! Thank you for the very nice comment. Yes Macros are really powerful and actually quite easy to use. This week we'll see some more on macros. Thank you for the support.

  • @catherinefrederick659
    @catherinefrederick659 3 года назад

    I have watched at least 6 videos trying to accomplish what you just taught. Thank you so much!

  • @franckchoserot9913
    @franckchoserot9913 2 года назад +1

    Great as always ! Thanks Leila, you are my bible !

  • @excelisfun
    @excelisfun 6 лет назад +14

    Thanks for the cool video about Relative and Absolute References in VBA !!!

    • @LeilaGharani
      @LeilaGharani  6 лет назад +5

      You're very welcome teammate Mike :) I'll be switching to some VBA fun for a little bit....

    • @rockmetal377
      @rockmetal377 5 лет назад +2

      @@LeilaGharani you guys are frineds?.. Excells Fun is like my old teacher and now Leila is my university teacher.. Respect for both of you.

  • @parmarboyz
    @parmarboyz 5 лет назад

    This is what I was looking for. Tried on many blogs but finally found it here.....Thank you!!!! Perfect Video.... :))

  • @fareedbadar8793
    @fareedbadar8793 6 лет назад +4

    As always, this time also you explained the subject in a simple and beautiful manner. It is very helpful for us.
    Thank you

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      I'm very happy to hear that. Thank you Fareed.

  • @sarwansingh9423
    @sarwansingh9423 4 года назад

    You know everything to explain....in clarity...thanks again

  • @ismailismaili0071
    @ismailismaili0071 6 лет назад +1

    thank you so much ms. Leila I think it's my chance to learn macros really appreciate your video

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome Ismail. Macros are a lot of fun. It gets more fun when we get to tweak the macros and adjust them to our needs...

  • @devika01dd
    @devika01dd 4 года назад +3

    Hi Leila, I have seen a few of your videos. They are really useful and I absolutely love how you teach! You do a great job.

  • @vimalraj2963
    @vimalraj2963 4 года назад +2

    Hi Leila could you please upload a video how to control a existing automation tool.. 🙏

  • @tahirshah6979
    @tahirshah6979 4 года назад

    Thanks for showing that we can use both relative and absolute options in single recording.
    You are very intelligent.

  • @esbi1124
    @esbi1124 4 года назад +1

    I've just used it. Really useful. Thanks again.

  • @AhmadMohassebElroby
    @AhmadMohassebElroby 3 года назад +1

    Can you tell me why I press on like button before I watch video!!!
    I’m still learning more from all videos, thank you so much.

  • @miraskhabibulla1345
    @miraskhabibulla1345 4 года назад

    Leila Gharani, you are amazing! Many thanks to your effort and comprehensive explanation!

  • @yetut2146
    @yetut2146 Год назад

    I don't need it for now. I just love watching good stuff

  • @astuteacerbic
    @astuteacerbic 4 года назад

    Hey Leila. Thanks for sharing this awesome knowledge. Not only does it help me in my work but it seems i look forward to learning with you and every day I learn something new. You are also very pretty. Keep it up

  • @ArshadAli-cl7eo
    @ArshadAli-cl7eo 4 года назад

    Seriously You are Amazing in explaining in detail. Thank you for doing such a noble Job.I have seen many excel tutorial but your explanation worth watching and entertaining.

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

      Thank you very much for the kind words! I'm glad the tutorial is useful.

    • @ArshadAli-cl7eo
      @ArshadAli-cl7eo 4 года назад

      Thanks Madam

    • @ArshadAli-cl7eo
      @ArshadAli-cl7eo 4 года назад

      i have watched your tutorial & I get imy Knowledge, God Bless you forever.

  • @utujecleopatra3450
    @utujecleopatra3450 Год назад

    You saved me nothing beats the feeling of an assignment well done 😁😁

  • @blrdls
    @blrdls 3 года назад

    THANK YOU! I was not aware there was such a thing as Relative Recording until now.

  • @konli
    @konli 2 года назад +1

    man I have trying to do this for years
    Thank You !!!!

    • @konli
      @konli 3 месяца назад

      start learning power query , I use to download several spreadsheets about 35 each month and copy it to the spreadsheets by customer.
      it took me a lot of work to automate The process!!
      With macros and ChatGPT !
      I have a macro that ask me what file to open and where to copy them and then ask me if I want to save the file and if I want to open a new one.
      Before power query I had a formula to take care of the variable of the size of the different sheets.
      Started on a new payroll proyects using power query and macros and its a lot more faster.
      Dont worry no more on the size of the worksheet, with the tables of power quey
      Thank You Leila !

  • @shardulshinde7309
    @shardulshinde7309 4 года назад

    Excellent Video.. Really made it simple to understand and work with macros.. keep up the good work.

  • @tungnguyen363
    @tungnguyen363 3 года назад

    Thank you SO MUCH! Your explanation was GOLD. You made it so easy to understand and it helped me with my work!

  • @vksvishwa
    @vksvishwa 3 года назад

    Beautifully explained in a very simple and effective way. Thank you.

  • @mongise7en
    @mongise7en Год назад

    Awesome! Although you missed to teach or show how to remove the range referencing to A1 for relative macro recording. And you are right, it still works.

  • @ckokse
    @ckokse 6 лет назад +2

    Wow, this is amazing! I am so looking forward to your complete course on VBA. Looks like I will be busy studying for a while 😍

    • @LeilaGharani
      @LeilaGharani  6 лет назад +3

      Glad you like it! You should for sure put some time aside. But the good news is you have life-time access so you can go slowly but surely :)

  • @momtazuddin8841
    @momtazuddin8841 4 года назад

    What VBA is:
    VBA (Visual Basic for Applications) is programming language for all office applications. It is still something that should be learned and can easily differentiate you from other Excel users. You can automate the recurring tasks, which you do regularly and repeatedly, through basic VBA programming. Each of the office products has its backstage for programming. You can make EVENTS for any of the Commands that you see on the front-end Ribbon menu. EVENTS are the series of commands written in VBA project.
    Automation through VBA:
    The owner of 20 hotels has revenue data for the year to date 2020. He needs to view monthly data by hotels at a glance and needs to create a Chart for this. If his Excel operator knows to work only at the user interface, the front-end of Excel, then it will take two hours or more for him to consolidate data from several sheets and take to a pivot source and then make a pivot table and a pivot chart. Whereas this can be automated in VBA and can be used later just on click.
    Here is an example of this automation which you may like to watch.
    facebook.com/VBA-Expert-Momtaz-103391721501133/

  • @akileshsharma2523
    @akileshsharma2523 4 года назад

    Hi Leila, I would like to thanks for this class. I really understood very easily.

  • @narendrangananathar8107
    @narendrangananathar8107 3 года назад

    Thank you Leila, great piece of work, thanks for sharing with us. It helped me immensely and I appreciate your efforts!

  • @Bijudevadas
    @Bijudevadas 4 года назад +1

    Very useful tutorial. It will be further useful if could put another tutorial for how to copy data from summary sheet to different sheets based on some criteria using VBA

  • @olabodeolujomoye
    @olabodeolujomoye 2 года назад

    Thank you Leila. Super awesome stuffs 👍🏾

  • @esbi1124
    @esbi1124 4 года назад +1

    Hello, really good. Thanks a lot.

  • @Raining76
    @Raining76 4 года назад

    U r the best .. thank you for your time and effort in these trainings

  • @johnborg6005
    @johnborg6005 6 лет назад +1

    Amazing Leila. I am not much into Macro recording. I am more of a formula person thanks to Mike :) but this was very interesting and I will surely follow your coming videos to learn new staff, maybe I will learn some VBA from you. Thanks

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome John! I understand - I love formulas too. Macros are really great though for automating routine tasks. I'm curious what you think about the next videos...

  • @harrypriestley2105
    @harrypriestley2105 Год назад

    Extremely useful thank you!

  • @rosamaulini177
    @rosamaulini177 6 лет назад

    Always clear and easy to follow. Really appreciate your videos. Thank you!

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome Rosa. Thank you for your comment and your support.

  • @theenlightened1s
    @theenlightened1s 5 лет назад

    Thank you.. You posted this video at the exactly the right time I needed this..

  • @engrasifalirazabhuttoya
    @engrasifalirazabhuttoya 4 года назад

    Much informative! Useful. I’m looking forward to your Excel VBA course! many thanks

  • @FibFract
    @FibFract 7 месяцев назад +1

    Hi, thanks for all the great excel training videos.
    I recorded a macro to execute formatting I apply to a report I recieve multiple times a day. One of the formatting I apply is insert table, but the macro fails to input the table because the # of rows for each report vary - sometimes it's more or less. How can I write the macro so the code updates to the relative # of rows? Thanks.

  • @yog146
    @yog146 3 года назад

    Thanks a lot ❤️❤️❤️ .. I was struggling with one error & didn't know how to find solution inspite of doing everything right. Seeing this video I realised my mistake.

  • @lenabalina
    @lenabalina 11 месяцев назад

    Great video as always - but did i miss the section on how to create a JPEG or GIFF file from the barcode created?

  • @deepakbhanushali1
    @deepakbhanushali1 2 года назад

    i have seen many videos of your its which have help me save lot of time , now if we have lots of data and transfering that data partywise to another sheet but if that data is more then 1 page i want to show that data head to all the other pages also

  • @lugamele
    @lugamele 5 лет назад

    Thank you very much for your help! It was so easy once I saw your video! I was looking for a solution for 2 days and I found just what I needed with this video!

  • @EnglishTeaching101
    @EnglishTeaching101 3 дня назад

    I like the way you teach us with a pure calmness on your face showing how easy it was. However, I need a complex job for this macro to perform. I have libreoffice in linux and I copy some data from one sheet and paste into another one opened separately which called "invoice" and it has a list of hundreds of invoices. when i put data from the summary sheet to the invoice sheet, I give it a sequenced numeric name and press F12 to "save as" and start editing the next sheet by copying some data from the summary sheet and paste it in the invoice sheet and press F12 to ''save as'' and give a name by increasing the last digit of the invoice' name . I want it to automate for me. how can I do that?

  • @samtj3524
    @samtj3524 4 месяца назад

    Personal notes: Consider mixing both absolute and relative referencing in model, whenever each component matters.

  • @mihretabneway6811
    @mihretabneway6811 4 года назад

    Hey Leila, awesome tutorial and you explained it very neatly and in simpler ways.

  • @marcellokassa6975
    @marcellokassa6975 6 лет назад

    Thanks Leila for this awesome video... You just made it easy!

  • @1ammotivatedphl162
    @1ammotivatedphl162 4 года назад

    I just subscribe to your channel since Ive learned new macro today!

    • @LeilaGharani
      @LeilaGharani  4 года назад

      That's great. Glad to have you here :)

  • @tahirshah6979
    @tahirshah6979 5 лет назад

    You explain topics nicely and fluently.
    I want to know that is there any plan of Microsoft corporation that excel will handle big data?
    By big data, I mean data records in millions.

  • @JI9131
    @JI9131 6 лет назад

    excellent, with the advantage of absolute and relevant reference working together

  • @ejikechime8864
    @ejikechime8864 5 лет назад

    This is so nice, Leila you are just the best. I love the way you simply it, you are doing a great job please keep it up

  • @jaouadbelkhalfi1235
    @jaouadbelkhalfi1235 4 года назад

    Excellents presentation and work. thank you !

  • @abdallah.kandiel
    @abdallah.kandiel 6 лет назад

    Welcome back
    Shining as always

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Many thanks! You're back too :)

    • @abdallah.kandiel
      @abdallah.kandiel 6 лет назад +1

      Leila Gharani
      Can't mess ur news
      I just reviwing some of ur past videos
      How amazing
      Really thanks
      Wishing u the best of every thing

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Thank you! All the best to you too.

  • @andrewmoss6449
    @andrewmoss6449 6 лет назад +1

    Your new course looks really interesting. Can't wait to buy it!

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      Thanks Andrew :) It's been a lot of work and but also fun putting the course together. I'm looking forward to your feedback once it's out.

  • @johnborg5419
    @johnborg5419 2 года назад

    Thanks Leila. Very Interesting!!! :) :)

  • @pushkarsinghbhoj5340
    @pushkarsinghbhoj5340 2 года назад

    Hi Leila, 1st of all Tank you so much for sharing these priceless knowledges. can you make a session on Splitting data from on Master sheet to another multiple sheet as per sales country or department wise by VBA coding.

  • @rubenhuertagranados1549
    @rubenhuertagranados1549 5 месяцев назад

    You are so Beatyfull, so Smart

  • @mahmoudbasheti3551
    @mahmoudbasheti3551 5 лет назад +1

    Clarity Queen .. Thank you again

  • @sinishawnega1485
    @sinishawnega1485 Год назад

    Thank you for your nice lessons. I have one problem applying the steps, pressing Enter key pastes the copied cell's content. Is there anyway I can avoid that?

  • @hamzawaheed47
    @hamzawaheed47 4 года назад

    Thank You very much Ms Leila!

  • @rajkanojia1725
    @rajkanojia1725 5 лет назад

    Ma'am it's really well explained & helpful. Thanks a lot

  • @Softwaretrain
    @Softwaretrain 6 лет назад

    Fantastic. Thanks for sharing. I knew this like some other training but i love your training .
    Thanks.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      Thank you. Appreciate your support.

  • @Rajan-kk8nl
    @Rajan-kk8nl 5 лет назад

    Lot of thank you medam, your teaching and explanation are very super. Wish you happy newer.

  • @Ssdn23
    @Ssdn23 Год назад

    Thank you so much, I have question please, my data contains a lot of zipcodes. I want do analyze them in different aspects such as population, income and so on and the step like following
    1- find the nearest zip values and compare them to the primary zipcode and then rank the primary code.
    2- keep the primary zipcode along with nearest zipcode. So when I search for primary zipcode the nearest code should appear too.
    Can you please advise me what type of formula I use? And on how to group primary zipcode with nearest zipcode?
    Thank you again for your very useful videos

  • @kiasca3489
    @kiasca3489 5 лет назад

    You just save me time and struggle, clear as water. It's always great to learn new things, like I just have a revelation, THANKS!!!!. Is the course one time payment lifetime access? just making sure I understood right.

  • @rakeem6672
    @rakeem6672 5 лет назад

    You are amazing . I learned a lot

  • @ahmedeltayfy717
    @ahmedeltayfy717 5 лет назад +1

    So Coooooooooooooooooooooool .Unique Approach , thank you for kind Explain

  • @sarojsuwal9434
    @sarojsuwal9434 6 лет назад

    Thank you so much.
    I would be looking forward for more videos on macro & VBA coding.

    • @LeilaGharani
      @LeilaGharani  6 лет назад

      You're very welcome. Yes :) more coming this week...

  • @mdivyakanth
    @mdivyakanth 3 года назад

    excellent job done.. thank you

  • @aljhun24
    @aljhun24 2 года назад +1

    Hi Leila, thanks for this video. This really helped me a lot to understand how Macro works. I just have one question, what if we add new rows from NewData#1 and 2 will the macro will capture the new rows in SummaryData sheet? I’m trying to create a running file from different sheets and integrate it in one sheet

  • @learn_tricks_excel
    @learn_tricks_excel 5 дней назад

    My best ❤

  • @CostasMoschopoulos
    @CostasMoschopoulos 4 года назад +3

    Hello! Thank you for the great lesson!Whatif I would like to copy / paste a column from specific cell text and all the way down? Thanks in advance!

  • @mobr.
    @mobr. 5 лет назад

    Impeccably explained. Thank you.

  • @souravagarwal8475
    @souravagarwal8475 4 года назад

    Seriously I am falling in love with you

  • @idealstrength
    @idealstrength 9 месяцев назад

    Hi Leila, your videos are super helpful. I have been able to accomplish this same task on my own but I am struggling to figure out how to make it work within a table with an empty data set. Any suggestions? Thank you!

  • @MalinaC
    @MalinaC 6 лет назад

    Thank you, Leila! It's incredibly important topic!

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      You're welcome Malina. Agree - you have great VBA videos yourself! I just need to learn some Polish.

    • @MalinaC
      @MalinaC 6 лет назад

      Leila, thank you, it's nice to hear it, especially from you :). I'll try to add comments in English :)

    • @LeilaGharani
      @LeilaGharani  6 лет назад +1

      That would be great!

  • @elkabdallah3471
    @elkabdallah3471 3 года назад

    Great video! One more question help please how to make copy rows with filtered data ? Thank u.

  • @origami_canoe1952
    @origami_canoe1952 3 года назад

    Amazing!! thank you!