Here is some code that will give you the idea. This is very basic.
You should also try and find one website that will list all (or most) of the tickers because excel is going to try and load in the pages individually, as you will see it doing in my code. This takes a very long time.
Name a sheet SymbolLookup and start at Cell A1 listing all the symbols that you want to lookup. This is going to take a while to run.
I think this only pulls "previous close" excel query tables don't find "today's close" in the yahoo finance symbol lookup.
Holding the escape key should stop the macro from running if it ends up taking too long. On my crappy cellular connection, importing 25 symbols took 52 seconds.
Bookmarks