Hey guys,
I didn't know if I should post this in the General or VBA forum (mods feel free to move this topic if needed), as I'm not exactly sure what the problem is, but here it is. I'll try to keep it short.
For the past 3 years or so, my partner and I have been using a VBA to collect market data from a website. We've had a few hickups over the years caused by some changes made to the html codes that the procedure goes through to collect said data, and recently had to slow down our procedure to avoid getting timed-out by the website, but nothing we couldn't handle. Until a few weeks ago...
For some unknown reason, our different procedures (which are all similar, just refers to different filters of which titles to refresh) started to act very weird. We'd run it over and over again, with no result. Then, out of nowhere, one would work. And from that point on, every single procedure does as well. Until we close the workbook, and we have to start again. Like the procedure has to "warm-up" before it actually becomes succesful.
Even stranger than that...my partner and I each have our own version of the exact same documents (identical files), each one saved on our own harddrive. We can both start running the same procedure, at the very same time, and one of us would be successful (typically the one that had the procedure "warmed-up") while the other one won't. Sometimes it's him, sometimes it's me. Completely random.
Additional things to know: I run the home version of Excel (Version 1811, built 11029.20079), while my partner uses Office 365 (latest version I assume). Depending on who's succesful doing the refresh after the market closes, we're saving it on our harddrive, and then copy/paste it on our dropbox...so that the next morning, the other one would have to overwrite his version with the one on dropbox to start the day with refreshed data.
So I guess my questions are:
- Are there any known issues between Home Office and Office 365 that could cause such an issue ?
- To the best of your knowledge, does it seem to be an Excel related problem, or maybe an issue with some data scrapping protection on the website we're using ?
I'm kinda leaning towards an issue with our Excels, as there wouldn't be any reasons for the procedure to start working after a while (and for many hours straight) if this was caused by the website itself. Plus, it wouldn't make sense for the procedures to work on one computer, and not on the other if this was the case.
But I can't figure it out.
Any help is appreciated.
I'm leaving a copy of one of the xlsm file we're using (we have different version, depending on what we're monitoring to avoid refreshing things we don't need) in case you want to take a look at the procedure itself. It can be found in Module Refresh_Index.
Thanks.
Bookmarks