I have some VBA that connects to the internet to download a table.
The code:
It's in a loop that ends up creating 1000+ new named ranges, all the same. I'm pretty sure it's this part:Please Login or Register to view this content.
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://finance.yahoo.com/q/hl?s=" & Range("S3").Value & "+Holdings", Destination:=Range( _
"$AD$1"))
But I don't know if I should stop it, or just delete it after.
Bookmarks