Hi,
Can anyone please tell me what this function does...There is a formula in the sheet that reads...GetStockYahoo(B32,D32)...where B32 = NZDAUD=X and D32 = 0.7536
Function GetStockYahoo(STOCK, DEST)
With ActiveSheet.QueryTables.Add("URL;http://finance.yahoo.com/d/quotes.csv?s=" & STOCK & "&f=l1&e=.csv", DEST)
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.RefreshStyle = xlOverwriteCells
.Refresh BackgroundQuery:=False
.SaveData = True
End With
GetStockYahoo = ""
End Function
Many thanks
Can anyone please tell me what this function does...There is a formula in the sheet that reads...GetStockYahoo(B32,D32)...where B32 = NZDAUD=X and D32 = 0.7536
Function GetStockYahoo(STOCK, DEST)
With ActiveSheet.QueryTables.Add("URL;http://finance.yahoo.com/d/quotes.csv?s=" & STOCK & "&f=l1&e=.csv", DEST)
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.RefreshStyle = xlOverwriteCells
.Refresh BackgroundQuery:=False
.SaveData = True
End With
GetStockYahoo = ""
End Function
Many thanks