Copying data from one sheet to another
Closed
mitochondria
-
29 Apr 2011 à 15:21
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 30 Apr 2011 à 01:31
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 30 Apr 2011 à 01:31
Related:
- Copying data from one sheet to another
- How to copy data from one excel sheet to another - Guide
- How to copy data to multiple worksheets in Excel - Guide
- How to transfer data from one Excel sheet to another? - Guide
- Excel link to another sheet - Guide
- How to export data from facebook - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
30 Apr 2011 à 01:31
30 Apr 2011 à 01:31
try this macro "test"( "undo" is to clear sheet2 for retesting "test")
Sub test()
Dim r As Range, c As Range
Worksheets("sheet1").Activate
Set r = Range(Range("A1"), Range("A1").End(xlDown))
For Each c In r
c.EntireRow.Copy
With Worksheets("sheet2")
.Cells(Rows.Count, "A").End(xlUp).Offset(14, 0).PasteSpecial
End With
Next c
With Worksheets("sheet2")
.Range("A1:A14").EntireRow.Delete
End With
End Sub
Sub undo()
Worksheets("sheet2").Cells.Clear
End Sub