Excel VBA to Copy/Move Data Within Sheet, to Another Sheet or Another Workbook

  Рет қаралды 147,908

Chester Tugwell

Chester Tugwell

Күн бұрын

This video demonstrates how to write a VBA Macro to copy or move ranges/cells. You will learn how to:
Copy/move a range within the same worksheet
Copy/move cells to another worksheet
Copy/move a data to another workbook
Copy and transpose data.
------------------------

Пікірлер: 40
@joannaklosowska2017
@joannaklosowska2017 Жыл бұрын
Hi Chester. Thank you very much for your videos! I don't know anything about macros and at the same time, I'm writing them. Thanks to you :)
@sudarshansathyanarayanan3480
@sudarshansathyanarayanan3480 5 жыл бұрын
u r teaching awesome so that everybody can understand it easy.
@imyong7983
@imyong7983 3 жыл бұрын
Thank you such simple and easy to follow instruction
@lisama2538
@lisama2538 2 жыл бұрын
omg love the flow and the excellent tutorial, thanks!
@alekm9446
@alekm9446 3 жыл бұрын
Well explained, thank you!
@augustooviedo8207
@augustooviedo8207 5 жыл бұрын
Thanks so much, really
@FaysalEasyExcel
@FaysalEasyExcel 4 жыл бұрын
thanks it's very helpful and will save my time
@GeorgeAJululian
@GeorgeAJululian Жыл бұрын
Thank you very useful
@nicholetam5104
@nicholetam5104 5 жыл бұрын
can you do a video on copy dynamic range from A2 onwards and paste it in a different workbook? thanks
@fksons4161
@fksons4161 Жыл бұрын
Thank you so much
@nilsbruhner1983
@nilsbruhner1983 5 жыл бұрын
Very Nice and useful video. Thank U for education.//Nils
@eddiemayah5504
@eddiemayah5504 4 жыл бұрын
this is very useful
@user-ih7ot7vl8u
@user-ih7ot7vl8u 3 жыл бұрын
It is very simple and helpful, very thanks 🌹
@ChesterTugwell
@ChesterTugwell 3 жыл бұрын
You are welcome 😊
@michellegygax6527
@michellegygax6527 3 жыл бұрын
I am loving this videos, I am having some trouble trying to create an invoice that can be reused, but the data entered remain saved into a log sheet. Can you suggest some tutorials for me to watch to be able to do that. I have NEVER worked with VBA's and have been confused by them until coming across your tutorials--you explain and walk through the steps very well and are easy to follow. UPDATE: I got it...now I am just having trouble with brining the sum over from the other sheet/log--any help will be appreciated.
@mohammedhussein1592
@mohammedhussein1592 5 жыл бұрын
Hi Chester, thanks for the video One question, can I copy the Data to a new workbook ?? Like once I run the Macro it should open a new workbook and paste the data inside it Thanks a lot
@PankajKumar-rx6od
@PankajKumar-rx6od 4 жыл бұрын
Thanks
@barrycomben5386
@barrycomben5386 4 жыл бұрын
Chester, Best vba module creation explanation on the web. I wonder if you could help me write one (from a Button) which transfers all my listed assets that need P.A.T testing to another P.A.T testing sheet. If they need testing cell 7 will indicate 'yes'.?
@manasimahajan8307
@manasimahajan8307 5 жыл бұрын
This Works for me now - Sub CopyToBook() Set y = Workbooks.Open("Path to the file") Workbooks("Book2.xlsm").Worksheets("Sheet1").Range("C22").Copy y.Sheets("Sheet1").Range("B5").PasteSpecial End Sub
@lazmusic1
@lazmusic1 5 жыл бұрын
Hi Chester, thank you for an excellent explanation of this topic. I have a question which may need a somewhat long answer and may test your generosity with providing free instructions but I'll ask it anyway! I need a code for copying certain cells from one sheet to a row in another sheet in the same workbook by clicking a button and for each instance of clicking that button (after the completion of the required information) for the new set of data to appear on the subsequent row in the destination sheet, as if one was inputting data in an Access form. Apologies for the long question again and many thanks.
@revlaxcoordinators4364
@revlaxcoordinators4364 5 жыл бұрын
Hi! I am following the exact formula/code you created to move one cell to another cell on a different sheet. However, when it moves, it shows the number 1, when it should be 28. Then when I click the cell it says =COUNTA(#REF). Do you think this is different due to the fact that your tutorial used words and I am using numbers? Thank you!
@ShikhaSharma-qw4px
@ShikhaSharma-qw4px 5 жыл бұрын
Thank you. I want to copy different ranges (ex- b2:b10 and s2:s10) from one workbook and paste it to another workbook (ex- b2:b10 copied range should paste in aa2 of this workbook and s2:s10 copied range should paste in bb2). Sheet name is dynamic it will change every week. It would be great if you could help me out.
@MrPakiwarrior
@MrPakiwarrior 5 жыл бұрын
Hi Chester. I need some help regarding moving data from one sheet to another. I have 6 items in a dropdown menu list. Rice, Beans, Wheat, Corn, Grey, Pasta I also have added a column showing cost on the right side of this dropdown column. I have made 6 Sheets in same workbook. I need the right item to be moved to the item sheet. Can u plz help me?
@alializadeh8195
@alializadeh8195 2 жыл бұрын
Thanx
@allahwithme1731
@allahwithme1731 Жыл бұрын
Thank you dear. One inquiry please, how can I use cut cells but only value not formula
@wxmyjnsn
@wxmyjnsn 4 жыл бұрын
This was VERY useful, thank you! However, I need to cut and paste the active row from one table to another table on a different sheet and then delete the empty row. How do I do that?
@sahithyaneppala1416
@sahithyaneppala1416 3 жыл бұрын
Can you please let me know if you find that., I'm checking for same. Thanks in advance🙂
@wxmyjnsn
@wxmyjnsn 3 жыл бұрын
@@sahithyaneppala1416 I have it at work. On Monday I will paste it here.
@sahithyaneppala1416
@sahithyaneppala1416 3 жыл бұрын
@@wxmyjnsn Thankyou so much 🙂
@syedikramulla3693
@syedikramulla3693 3 жыл бұрын
I have a sheet with macro. When copy the sheet, macro is also getting copied in the new sheet. Please let me know how to avoid macro getting copied or disable macro in the new sheets.
@user-to4hn8wm7d
@user-to4hn8wm7d 5 жыл бұрын
I am trying to use this code but it give run time error 9. Code:- Sub Monthly_GST_Sales_Report() Range("A1:W507").Copy Workbooks("Monthly_GST_Sales_Report").Worksheets("Sheet1").Range("A1") End Sub
@renukavashisth6744
@renukavashisth6744 4 жыл бұрын
Sir I have a question I want to copy one date to next date then copy next date until another date in loop Like in A1 I have 01/05/2020 & in A10 I have 02/05/2020 & A12 I have 03/05/2020. Now I want to fill dates in cell A2 to A9 date 01/05/2020 so on dates are not in same position Plz help me
@manasimahajan8307
@manasimahajan8307 5 жыл бұрын
Thank you for the video :) copytobook for some reason does not work Sub CopyToBook() Range("A20").Copy Workbooks("newB").Worksheets("Sheet1").Range("A5") End Sub It gives me Run-time error '9' Subscription out of Subscript Could you please suggest if anything needs to be changed in the code
@SamStatham294
@SamStatham294 3 жыл бұрын
I got the exact same thing :(
@zeshankhan2455
@zeshankhan2455 Жыл бұрын
how to repeated rows X number of time in excel vba
@Abidaytrader
@Abidaytrader 8 ай бұрын
Create a Macro to Copy Auto Filtered Dataset to a New Excel Workbook, please provide the VBA code with macro
@GhostRider-mz1hl
@GhostRider-mz1hl 3 жыл бұрын
Morning Chester, I have watched your video, but! the problem for me is this, you don't give the option to paste the text only in the cell or cell range, for example my destination sheet (Main data base) has got set up formatted cells coloured cells, and boarders and formulas in them for example yellow cells, and sheet 2 is my update sheet, which has the same information but! no formatting or formulas in it, and any new data I add in sheet 2 will always go at the top, and the rest of the information will move down as new data gets added, then I will click on my UPDATE MAIN DATABASE button to update my MAIN DATABASE, so in your VBA CODE, please can you tell me what the vba code including the cell range as shown in your video to just paste the text only so that none of the formatting colored cells/boarders and any formulas in my main database does not get pasted over except for the text, PS I am using office 365, thank you, I look forward to hearing from you. With kind regards Steve.
@chewhouming3386
@chewhouming3386 3 жыл бұрын
How to paste row F4:F5 till last row in column A. LastRow = Cells(Rows.Count, 1).End(xlUp).Row Range("F4:H4").Copy Range("F5:H5" & LastRow)
@rinupvr3960
@rinupvr3960 2 жыл бұрын
Can you send this work book ore macro code to me
Excel VBA Macro to Paste Values & Number Formatting But Not Formulas
4:47
Excel VBA: Copy Data Between ANY Two Sheets
12:56
Excel Macro Mastery
Рет қаралды 116 М.
The delivery rescued them
00:52
Mamasoboliha
Рет қаралды 8 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 48 МЛН
How to Copy Data from Another Workbook in Excel Using VBA
29:09
Essential Excel
Рет қаралды 38 М.
VBA Macro to Copy Data from Another Workbook in Excel
13:39
Excel Campus - Jon
Рет қаралды 624 М.
Extract Data to Separate Sheets the Right Way!
8:34
MyOnlineTrainingHub
Рет қаралды 152 М.
Excel VBA to Save Data to Another Workbook
13:03
TeachExcel
Рет қаралды 61 М.
He never realized who actually ate his fruit
0:28
Valja & Maxim Family
Рет қаралды 18 МЛН
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
0:37
Levsob
Рет қаралды 18 МЛН
When cats see food 😱🤣🥰
0:29
Ben Meryem
Рет қаралды 13 МЛН