I need to open 2 workbooks based on the values in columns A and B and iterate until there are none left. I need it to be dynamic and loop.
The goal is to copy the sheet from the file name in Column B and post it to a named sheet in the workbook from Column C. Then close both workbooks and do it again for the next row
Here is what I have so far:
Sub OpenCopyPaste ()
Workbooks.Open "C:\Users\boone\Documents\Fast Track\Summary Reports\"
Workbooks.Open "C:\Users\boone\Documents\Fast Track\Weekly Files\"
'Need to put in dynamic workbook. Maybe Active??
Workbooks("Column B.xlsx").Worksheets("Sheet").Range("A8:R48").Copy _
Workbooks("Column C.xlsx").Worksheets("Weekly Data").Range("A1")
'Need to make dynamic
Workbooks("Column B.xlsx").Close SaveChanges:=False
'Now copy a range from workbook in column c to the new sheet that was copied
Sheets("2020 FT Tracking").Range("B23:B29").Copy Destination:=Sheets("Weekly Data").Range("T3")
Application.CutCopyMode = False
End Sub
The goal is to copy the sheet from the file name in Column B and post it to a named sheet in the workbook from Column C. Then close both workbooks and do it again for the next row
Here is what I have so far:
Sub OpenCopyPaste ()
Workbooks.Open "C:\Users\boone\Documents\Fast Track\Summary Reports\"
Workbooks.Open "C:\Users\boone\Documents\Fast Track\Weekly Files\"
'Need to put in dynamic workbook. Maybe Active??
Workbooks("Column B.xlsx").Worksheets("Sheet").Range("A8:R48").Copy _
Workbooks("Column C.xlsx").Worksheets("Weekly Data").Range("A1")
'Need to make dynamic
Workbooks("Column B.xlsx").Close SaveChanges:=False
'Now copy a range from workbook in column c to the new sheet that was copied
Sheets("2020 FT Tracking").Range("B23:B29").Copy Destination:=Sheets("Weekly Data").Range("T3")
Application.CutCopyMode = False
End Sub