I am getting the an automation error while invoking the following object
Set IE = CreateObject(\"InternetExplorer.Application\")
The error
I just wasted 4 hours on this, and I'm facepalming at how easy the solution was. Excel creates a new activeX instance every time you run the line:
Set IE = CreateObject("InternetExplorer.Application")
How exactly that works is out of my league, but those references stick around even after you restart excel. After a couple dozen pile up, excel runs out of memory to make more
Restart your computer, (probably an easier way, but that worked for me) and then stick the line
IE.Quit
at the end of your code