shortcut wrote: ↑Tue Apr 16, 2019 12:26 am
Make sure you change VBA code to add "s" after the http.
Well spotted Shortcut and thanks for the fresh download. I've delved into the code before and changed the target directories for saving the files. I look for "DestinationFolder = "C:\" & FolderName & "\" & DownloadFileName" and put my new path in place of the "C\". I use a D: drive for all personal stuff so changed the code to read "DestinationFolder = "D:\Data\BetfairSP's" & FolderName & "\" & DownloadFileName" and then added the Country and Market sub-folders (e.g. "UK Win" etc.) to the BetfairSP's folder just as I would have done on the C: drive.
However one change that I can't figure is downloading some files the spreadsheet misses. There are 491 files previous to the current naming convention, they are named "bfprices_DDMMYYYY.csv", "bfpricesire_DDMMYYYY.csv", "bfpricesireplace_DDMMYYYY.csv" and "bfpricesplace_DDMMYYYY.csv". I've tried changing/substituting every occurrence I can find of one of the existing file name types to say "bfprices" to download these files but cannot get it to work.

I'm not a VB coder but I used to write in original BASIC so I have some idea what is going on with the code. Is there something obvious you think I may have missed?
Something else users of this data may not be aware of is that many price files have changed after first publication. Why? I don't know. Some of us may refer to the files daily to top-up our databases, some maybe make it a weekend job and some monthly … I admit I am a "when I think of it" type of guy because I don't need the data to be fully up to date for my purposes but I also don't like basing my decisions on known to be inaccurate data! Let's say you are a 'monthly' guy.

There are currently 165 files in the list that were 'modified' 30 days or more after they were first published and so far this year 22 files have been modified at least once. And I'm sorry to say that if you are a Daily guy then 822 files have been modified since first published … just something to be aware of. The problem is identifying the modified files as they are sorted in order of "Date Created" on the webpage. I right click on the page, Select All, give it time to copy the selection, it is not immediate because of the size of the page. I then Paste the Text into a spreadsheet for sorting by "Date Last Modified" … you will need to do some manipulating of the date for Excel to read it (I use =DATEVALUE(MID(D2,5,2)&"/"&LEFT(D2,3)&"/"&MID(D2,9,4)) where the Date Last Modified is in column D. You can then compare the last Modified Date with the original Date Created and decide if you want to look at the modified file.