Download Text Files From Web via Excel VBA and Save to Hard Drive
I would like to download ~150,000 text files from the internet and save these files to ~4500 different directories. If the 4500 directories complicates things, the files can all go to 1 directory.
I have the internet filepaths and the names I would like to give the directories to save these files in within an Excel file.
Is there a way to use Excel VBA to download and save these files?
Ideally Excel won't need to open the files, as I want to ensure formatting isn't changed.
Path to first 3 files is below.
Ideally these 3 files would be saved in a directory that is created within VBA and labelled 1511144 (I have this number in separate cell, so it would not need to be pulled from the URL).
Thanks for the help.
Regards,
Jim
ftp://ftp.sec.gov/edgar/data/1511144/0001511144-11-000003.txt
ftp://ftp.sec.gov/edgar/data/1511144/0001511144-11-000005.txt
ftp://ftp.sec.gov/edgar/data/1511144/0001511144-11-000007.txt
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago