How do I copy data from one Excel sheet to another? [closed]
I need VB code for copying daata from one Excel sheet (sheet1) to another (sheet2). How do I do this?
This will copy everything from the first worksheet to the second:
Sub Test()
Worksheets("Sheet1").UsedRange.Copy
Worksheets("Sheet2").Range("A1").PasteSpecial
End Sub
精彩评论