Last active
December 22, 2021 23:29
-
-
Save Se7enSquared/f453429bc2c943f75c702bd93835f777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub CopyUsedRangeFromExternalWBToTable(source_ws_number As Long, wb As Workbook, dest_sheet As String, dest_range As String) | |
wb.Worksheets(source_ws_number).UsedRange.Copy | |
ThisWorkbook.Worksheets(dest_sheet).Range(dest_range).PasteSpecial Paste:=xlPasteValues | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment