ASBA2
ASBA2
Open Excel
Insert a Module
Copy and paste the following VBA code into the module:
Sub ExportData()
Set srcSheet = srcWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your actual sheet name
Set destWorkbook = ThisWorkbook ' Use ThisWorkbook if running the macro from the
destination file
srcWorkbook.Close SaveChanges:=False
End Sub
Close the VBA editor and run the macro by pressing Alt + F8, selecting ExportData,
and clicking “Run.”