I have 3 workbooks, namely: A, B and C.
I'm coding a VBA macro inside A in order to copy cell range content of a particular sheet from B to C.
Dim wb_TC_PBS As Excel.Workbook
Dim wb_SPO_PBS As Excel.Workbook
Set wb_TC_PBS = Workbooks.Open("C:\temp\migration\B.xlsm")
Application.CutCopyMode = False
FinalRow = Sheets("TC_PBS").Cells(Rows.Count, 1).End(xlUp).Row
Range("A5:EO" & FinalRow).Copy
I would like to understand if my approach is correct and how to continue pasting content on workbook C
Range("A5:EO" & FinalRow).Copy
remove this lineApplication.CutCopyMode = False
because it removes what you've just copied from the clipboard it's equivalent to pressingESC
key after you copy some range in excel. Then Activate and select the range and sheet where you want to paste. - Stupid_Intern