Copy The Data from Source To Destination
Copy The Data from Source To Destination Workbook
Sub Copy_The_Data_From_One_Workbook_To_Another()
SFilename = Application.GetOpenFilename
Workbooks.Open (SFilename)
Dim SWkb As Workbook
Set SWkb = ActiveWorkbook
DFilename = Application.GetOpenFilename
Workbooks.Open (DFilename)
Dim DWkb As Workbook
Set DWkb = ActiveWorkbook
Dim SrcRng As Range
Set SrcRng = Application.InputBox("Select The Source Range To Copy", "www.Tricks12345.com", Type:=8)
Dim DestRng As Range
Set DestRng = Application.InputBox("Select The Destination Range To Paste", "www.Tricks12345.com", Type:=8)
SrcRng.Copy DestRng
With SWkb
.Save
.Close
End With
With DWkb
.Save
.Close
End With
Set DestRng = Nothing
Set SrcRng = Nothing
Set SWkb = Nothing
Set DWkb = Nothing
End Sub