The below macro, that I use to open files from a http location, works well for me if all I want to do is open the files. Is there anyway that, instead of opening, I can save the files to a folder that I define in cell I1?
Code:
Sub OpenFiles()
Dim wkb As Workbook
Dim file As Variant
Dim coll As New Collection
Range("G2").Select
Do
If ActiveCell = True Then
coll.Add ActiveCell.Offset(0, 2)
End If
ActiveCell.Offset(3, 0).Select
Loop Until IsEmpty(ActiveCell)
For Each file In coll
Set wkb = Workbooks.Open(file)
Next file
End Sub