Excel VBA To Copy Data From One Sheet To Another (BEGINNER TO PRO!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 64

  • @TigerSpreadsheetSolutions
    @TigerSpreadsheetSolutions  3 ปีที่แล้ว +2

    🔥WATCH NEXT: The Future Of Excel VBA?
    th-cam.com/video/Z62yORhPr3Q/w-d-xo.html

  • @sbatsia
    @sbatsia 3 ปีที่แล้ว +4

    Further to my recent email, this direct transfer method has been demonstrated and explained in a noticeably clear and comprehensible way. I'm happy to express my thanks and appreciation to you!

  • @TigerSpreadsheetSolutions
    @TigerSpreadsheetSolutions  3 ปีที่แล้ว +1

    Which method are you using to copy data from one sheet to another with Excel VBA - 1,2,3,4 ... or 5? Let me know in the comments, I will get back to you ..👇

    • @mcinik1
      @mcinik1 3 ปีที่แล้ว +1

      I'm still copy and pasting this should save me hours thanks Chris

    • @tracycritchley8564
      @tracycritchley8564 3 ปีที่แล้ว +1

      I would like to use Method 5 to move the last piece of data added to one sheet and automatically move to another sheet. In the VBA lessons you did we did a "List" tab. I would like to add the data to this worksheet. However, I am getting Error- Run-time1004 Application-defined or object -define error. I am getting this same error on Methods 3 thru Method 5. If there is a way to help, that would be much appreciated!

    • @MrEliseo0808
      @MrEliseo0808 2 ปีที่แล้ว

      Same here

    • @ChristeenMontella
      @ChristeenMontella ปีที่แล้ว

      Here as well.

  • @gaspumprepairservice7009
    @gaspumprepairservice7009 11 หลายเดือนก่อน

    Good information, thx. I’m learning VBA at 60-something and your presentation is easily digestible.

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  11 หลายเดือนก่อน +1

      Welcome to the community - do take a look at our other videos on VBA

  • @ramandeepsingh8110
    @ramandeepsingh8110 2 ปีที่แล้ว +2

    You are superb Brother! I have seen all of your videos and made my notes which helped me a lot with my daily tasks. Thanks!
    Lots of Love & Wishes from India!

  • @steveknapp244
    @steveknapp244 3 ปีที่แล้ว +5

    Advanced Autofilter via vba is by far the fastest way to move data between sheets. I tested copy and paste vs AAF, and the time difference was literally less than half the time. Good, clear content as always 👍 I see you have succumbed to the lock down trim....I’ve had a wife trim very similar 🤣

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว +2

      Copying is slow ... but this video actually covers direct transfer, not copy, the reference to 'copy' is just to bring the punters in. Oh, and a picture of the lockdown cut is required!

  • @bartverheyden8851
    @bartverheyden8851 3 ปีที่แล้ว +1

    VBA makes this so easy! Really nice topic

  • @stevennye2441
    @stevennye2441 3 ปีที่แล้ว +1

    Excellent work, I started off thinking what is he doing? but your code ended up with a much cleaner solution than I expected.

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว

      Thanks Steven - love this comment, I like to hold you in suspense as long as possible :-)

  • @Jojosmith342
    @Jojosmith342 2 ปีที่แล้ว +1

    Thank you very much Chris for your great lesson. I have been searching for days fortunately I've found you the Super great teacher for VBA Excel. Thanks millions. Subscribed, definately liked! Looking forward to more lessons

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  2 ปีที่แล้ว +1

      Fantastic to hear Tammy, welcome to the community! We have many VBA videos you'll like ...

    • @Jojosmith342
      @Jojosmith342 2 ปีที่แล้ว

      @@TigerSpreadsheetSolutions Yes, I did bookmark your website as well. There was a developed data entry macro excel form that hide all the sheets. I am trying to find the way how to collect all data from 60 fields into master sheet. I dont know if I can use your method 5.

    • @Jojosmith342
      @Jojosmith342 2 ปีที่แล้ว

      @@TigerSpreadsheetSolutions thank you very much for your quick reply Chris. I tried method one to extract data from data entry excel form and received the run-time error'1004': application-defined or object-defined error. I created 2 sheets data, template as yours and copied your code of method 5. I also create the origin and destination cells but dont know why it does not work for me

    • @Jojosmith342
      @Jojosmith342 2 ปีที่แล้ว

      @@TigerSpreadsheetSolutions Hi Chris, I just tried Method 2 seems working but not dynamic.

  • @maf7764
    @maf7764 4 หลายเดือนก่อน

    Thank you so much, Sir. This is great learning video for me as never been using VBA. Thanks again Sir.

  • @ngee4925
    @ngee4925 3 ปีที่แล้ว +1

    I really love all of your VBA videos, always super helpful, thank you!

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว

      Thank you my friend and welcome to the channel!

    • @ngee4925
      @ngee4925 3 ปีที่แล้ว +1

      Thank you! I’m glad to be a subscriber!

  • @wrlomprez3802
    @wrlomprez3802 ปีที่แล้ว +1

    Thanks a lot, I needed this moving a ton of data around this cut time down to nothing damn

  • @syafiqothman32
    @syafiqothman32 4 หลายเดือนก่อน

    Thank you for making this video

  • @tlee7028
    @tlee7028 3 ปีที่แล้ว +1

    This is clearly explained ! 👍

  • @kralios
    @kralios ปีที่แล้ว +1

    very helpfull video, thank you

  • @rudolfnel5934
    @rudolfnel5934 2 ปีที่แล้ว +1

    great video i however need to copy over complete columns do you have a video with an example script of that

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  2 ปีที่แล้ว

      Hi Rudolf, thanks - I don't recommend copying complete columns because it's resource-intensive. But, I'm sure you can use and internet search to find the required VBA ... good luck!

  • @abosjolh596
    @abosjolh596 ปีที่แล้ว +1

    simply you are magic

  • @NethaLawrence
    @NethaLawrence 10 หลายเดือนก่อน +1

    This Video is great. One question though how can you have the code work without always clicking the play button? So when you type the value in one cell it auto copies it to another.

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  10 หลายเดือนก่อน

      Hi there - thank you! It's possible to get a macro to run when a value changes in a cell using what are called workbook event triggered macros.
      I don't recommend these however, because you very quickly feel like you've lost control with macros being triggered in the background constantly. That's why I recommend using buttons to trigger macros.

  • @hastyscorpion
    @hastyscorpion 3 ปีที่แล้ว +1

    I am slightly confused by 6:55. Since you changed the Origin to the Data sheet, why isn't the origin pulling the address from H5 on the Data sheet? Is it because range.value function only pulls from the active sheet?

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว

      It's a difficult one to explain. I would recommend dowloading the file and practising yourself. Good luck!

  • @pradeepprabhui6662
    @pradeepprabhui6662 2 ปีที่แล้ว +1

    Hi there, thanks a lot for this video..
    Very informative i must say..
    I do a lot of copy pasting from one workbook to another
    Condition - the cell that i will be copying from one workbook to another should happen only when a value matches.. (match function)
    How can i do this? Need your valuable assistance

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  2 ปีที่แล้ว

      Hi Pradeep - you'd have to combine the techniques taught in this video with others such as conditional statements. I would recommend one of our longer VBA learning series to get to grips with the skills. Good luck!

  • @martinshaw254
    @martinshaw254 8 หลายเดือนก่อน +2

    How could you change this to copy a formula instead of just a value? Is it possible

  • @brianbarns8675
    @brianbarns8675 7 หลายเดือนก่อน +1

    Hey Chris, This is interesting but what if I want this to work on auto so when data is entered in the 1st sheet it will also appear in the destination sheet with using a play or activate button. The next step would be to sort the data on the destination sheet and only show the top ranking results with the code running on auto. Is there a more detailed video on your website?

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  7 หลายเดือนก่อน

      What do you mean by 'in auto'? You want it to run without clicking a button?

    • @brianbarns8675
      @brianbarns8675 7 หลายเดือนก่อน

      @@TigerSpreadsheetSolutions Yes I was thinking of an auto sort as I add in new data and display the sorted results on another worksheet. I trying to learn how to do this. Thanks

  • @Ron-el6zh
    @Ron-el6zh 7 หลายเดือนก่อน +1

    Love the ideas behind this video. I understand the code, however when I run it from Method 3 onwards I get Run-Time error '1004': Application-defined or object-defined error. The template sheet is active, I added an extra line of code to activate the worksheet. I do not know why I am getting this error?
    Worksheets("Template").Activate

    Sheets("Template").Range(Range("E2").Value).Value = _
    Sheets("Template").Range(Range("H1").Value).Value

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  7 หลายเดือนก่อน

      Range("E2").Value looks at the active sheet because no worksheet name is mentioned
      If you're on the Template sheet, it will look at the cell E2 on the Template sheet - I'm not sure that's what you want it to do?

    • @Ron-el6zh
      @Ron-el6zh 7 หลายเดือนก่อน

      @@TigerSpreadsheetSolutions That was the issue, both E2 and H1 were empty. Method 3 is working!! You mentioned Excel Basic Course, I need to brush up, its been about 15 years since I looked at VBA. I wish Microsoft improved its error messages, it chews up so much time trying to track errors down. Thanks so much for your reply, looking forward to going through your course.

  • @Luigi0228
    @Luigi0228 3 ปีที่แล้ว +1

    Great video Chris, thank you very much. I have downloaded your file for the link provided and when I run the "Use_Table_To_Copy_Data() routine" and I get a "Run-time error ‘1004’: Application-defined or object-defined error". I haven't changed anything in your code. Are there any settings that I have to perhaps change on my side?

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว

      Hi Luigi - I think there's actually a mistake in the download file. Change G4 to G5 and H4 to H5 in that macro and things should work.

    • @Luigi0228
      @Luigi0228 3 ปีที่แล้ว +1

      @@TigerSpreadsheetSolutions Thanks Chris, all working now.

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  3 ปีที่แล้ว

      Luigi Liccardo thanks for pointing it out

  • @amarbirajdar7243
    @amarbirajdar7243 ปีที่แล้ว

    Hey Chris, So what if I have to create a new sheet on daily basis with date as the name of sheet and I have to copy the headers from the previous sheet. I know I have might have to use a variable for the sheet names but I am unable to find some example around it to get a reference. I have created a vba code to create new sheet and change its name to date but unable to proceed further. Can you help me here?

  • @arljunelmacasling8497
    @arljunelmacasling8497 5 หลายเดือนก่อน +1

    Hi Sir!
    Can I ask? where can I put these codes?

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  5 หลายเดือนก่อน +1

      Put them in the VBA editor - see our beginner VBA videos for more!

    • @arljunelmacasling8497
      @arljunelmacasling8497 5 หลายเดือนก่อน

      @@TigerSpreadsheetSolutions Okay sir, thank you; by the way, I'm constructing a fuel consumption form with VBA, and it requires a monthly summary report with five distinct sorts of structured forms. I'm grateful for your videos since they push me to accomplish my task, even if I'm still slow I can still notice progress.

  • @muslimsiroha
    @muslimsiroha 2 ปีที่แล้ว

    Dear Sir
    we have three sheet
    1. MR Form
    2. SMR
    3. Master Sheet

    First we make MR Form For the Request so we need to automatically Data Transfer with SMR Sheet and Master sheet and save data
    after that when we received material we can edit SMR Sheet with other details which cells is blank
    so when we need to update SMR Sheet then automatically we need to save with Master Sheet so please I want your help

    i will be provide you excel sheet

  • @Maleksikder-p2d
    @Maleksikder-p2d 4 หลายเดือนก่อน

    Robinson Ruth Young William Hernandez Matthew

  • @popinobien4621
    @popinobien4621 5 หลายเดือนก่อน +1

    Thank you for this really helpful tutorial! As someone who is not fluent in VB scripting, this video was able to demonstrate clearly how each method works. I am also looking for one that automatically looks up a certain column based on an identifier (more like an automatic VLOOKUP), and found it here --> th-cam.com/video/UwH1jit7ars/w-d-xo.html. Thanks again!

    • @TigerSpreadsheetSolutions
      @TigerSpreadsheetSolutions  5 หลายเดือนก่อน

      Thank you - great to hear the video helped! See you in another one on the channel ...