Automatically transfer data from one sheet to another
Solved/Closed
sunny49er
Posts
5
Registration date
Thursday October 25, 2012
Status
Member
Last seen
October 30, 2012
-
Oct 25, 2012 at 03:36 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 6, 2014 at 11:00 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 6, 2014 at 11:00 AM
Related:
- Transfer data from one excel worksheet to another automatically based on criteria
- Transfer data from one excel worksheet to another automatically - Guide
- Free fire transfer - Guide
- How to automatically transfer data between sheets in Excel - Guide
- Based on the values in cells b77:b81, what function can automatically return the value in cell c77? ✓ - Excel Forum
- How to reset safe folder password without losing data ✓ - Android Forum
3 responses
SANBOOLY
Posts
8
Registration date
Wednesday March 26, 2014
Status
Member
Last seen
August 21, 2015
Updated on Mar 24, 2017 at 11:41 AM
Updated on Mar 24, 2017 at 11:41 AM
Dears,
I got this code
and it's working perfect after I change the # of Selected cells in row to be 3.
But the Problem is (or you can say the Issue) that I need to:
1- Copy Cells from Range in sheet1 to Paste them in sheet 2 in Row. instead of selected cells in Row.
2- Take the Name of the Sheet1 to use it when I paste in the Sheet2 as additional Cell. (Like Shima as name of sheet1 to be in cell in sheet2)
3- Clear/Delete Contents of the Copied Row in the Sheet1 after Paste in sheet2.
Please Advise with the Result in Easy way. (because my English is not Perfect)
More info here : https://support.microsoft.com/en-us/office/move-or-copy-worksheets-or-worksheet-data-47207967-bbb2-4e95-9b5c-3c174aa69328?ui=en-us&rs=en-us&ad=us
BR,
Amr Hamdy
I got this code
Sub Update() Dim faRow, x As Integer x = ActiveCell.Row faRow = Sheets("Total").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Row Range("B" & x).Copy Sheets("Total").Range("A" & faRow) Range("D" & x).Copy Sheets("Total").Range("B" & faRow) Range("I" & x).Copy Sheets("Total").Range("C" & faRow) End Sub
and it's working perfect after I change the # of Selected cells in row to be 3.
But the Problem is (or you can say the Issue) that I need to:
1- Copy Cells from Range in sheet1 to Paste them in sheet 2 in Row. instead of selected cells in Row.
2- Take the Name of the Sheet1 to use it when I paste in the Sheet2 as additional Cell. (Like Shima as name of sheet1 to be in cell in sheet2)
3- Clear/Delete Contents of the Copied Row in the Sheet1 after Paste in sheet2.
Please Advise with the Result in Easy way. (because my English is not Perfect)
More info here : https://support.microsoft.com/en-us/office/move-or-copy-worksheets-or-worksheet-data-47207967-bbb2-4e95-9b5c-3c174aa69328?ui=en-us&rs=en-us&ad=us
BR,
Amr Hamdy
Oct 29, 2012 at 04:26 AM
Mar 27, 2014 at 12:35 PM
I'm here to help you but I find it hard to understand you.
1) You want to change the cells being copied? or where they are copied to?
2) So sheet1 is called "Shima" and sheet2 is called "Total". And now you want to place the source sheets name "Shima" to the destination sheet "Total". Where would you like to put that data, column D on the first available row?
If so then place the following line before End Sub:
Sheets("Total").Range("D" & faRow).Value = ActiveSheet.Name
3) No problem. Place the following code line before End Sub:
Union(Range("B" & x), Range("D" & x), Range("I" & x)).ClearContents
Let me know if something is unclear.
Best regards,
Trowa