G
Guest
Between recording a macro and creating a couple of loops (thanks to Merjet
from this Discussion Group), I came up with a way of querying the web site
finance.yahoo.com. I set up to loop to import historical stock prices into
Excel as well as certain information on the ‘Summary’ screen. The only
problem is that the information on the Summary screen is not consistent.
Deep within my code, I tell Excel to look for the following:
..WebTables = "48,53"
Usually this yields the desired results, but sometimes, I get the wrong
information because the wrong WebTables are being queried for certain stocks.
When I get these occasional errors, I can turn on the macro recorder and
identify the WebTables that I really need (and they could be something like
..WebTables = "46,51" or .WebTables = "47,52") but this defeats the purpose of
using a looping macro. Does anyone know why this occurs? More importantly,
does anyone know who to resolve this issue? The Yahoo finance people are
getting the right data into the right statistical categories, but they are
not reporting these in the same “WebTablesâ€.
Regards,
RyGuy--
from this Discussion Group), I came up with a way of querying the web site
finance.yahoo.com. I set up to loop to import historical stock prices into
Excel as well as certain information on the ‘Summary’ screen. The only
problem is that the information on the Summary screen is not consistent.
Deep within my code, I tell Excel to look for the following:
..WebTables = "48,53"
Usually this yields the desired results, but sometimes, I get the wrong
information because the wrong WebTables are being queried for certain stocks.
When I get these occasional errors, I can turn on the macro recorder and
identify the WebTables that I really need (and they could be something like
..WebTables = "46,51" or .WebTables = "47,52") but this defeats the purpose of
using a looping macro. Does anyone know why this occurs? More importantly,
does anyone know who to resolve this issue? The Yahoo finance people are
getting the right data into the right statistical categories, but they are
not reporting these in the same “WebTablesâ€.
Regards,
RyGuy--