I have a sheet with 3000 links to different pdf files. All listed in the same column. I'm trying to copy each file to the same folder. This is what I have so far. I works when I define each row but I need it to move to the next row. Any help is much appropriated.
Private Sub File_Copy()
Dim copyfrom As String
Dim copyto As String
copyfrom = Sheets("data").Range("J5")
copyto = Sheets("data").Range("C5") & " " & Sheets("data").Range("H5")
FileCopy copyfrom, "J:\Procurement\Purchase Orders\PO Report Link" & copyto & ".pdf"
End Sub
Code:
Dim copyfrom As String
Dim copyto As String
copyfrom = Sheets("data").Range("J5")
copyto = Sheets("data").Range("C5") & " " & Sheets("data").Range("H5")
FileCopy copyfrom, "J:\Procurement\Purchase Orders\PO Report Link" & copyto & ".pdf"
End Sub
Code: