比如:
Sub test()
Dim LastRow As Long, LastCol As Integer
With Sheet1
LastRow = .UsedRange.Rows.Count
LastCol = .UsedRange.Columns.Count
.Range(.Cells(2, 1), .Cells(LastRow, LastCol)).Copy Destination:=Sheet2.Cells(1, 1) '假設復制到 Sheet2 的 A1 單元格
Application.CutCopyMode = False
End With
End Sub