I would like to write into the cell A1 of an Excel sheet the result of the query below, but I don't know what I need to do :
Set myRHistoryManager = CreateHistoryManager
myRHistoryCookie = myRHistoryManager.Initialize("MY BOOK")
Set myRHistoryQuery = myRHistoryManager.CreateHistoryQuery(myRHistoryCookie)
' Set the query parameters accordingly to your needs
With myRHistoryQuery
.InstrumentIdList = "VOWG5YEUAM=R" ' Range("G6").Value
.FieldList = "MID_SPREAD.Timestamp;MID_SPREAD.Close" ' Range("G7").Value 'Or of the form "TRDPRC_1.TIMESTAMP;TRDPRC_1.VALUE;TRDPRC_1.VOLUME"
.RequestParams = "START:" & CDbl(ActiveSheet.Range("A1").Value) & " END:" & CDbl(ActiveSheet.Range("A2").Value) & " INTERVAL:1D" ' Range("G8").Value
.RefreshParams = "FRQ:5S" ' Range("G9").Value
.DisplayParams = "" ' ActiveSheet.Range("G10").Value '"TSREPEAT:YES CH:Fd"
.Subscribe
End With
Exit Sub
Where do I have to write the cell on which I want the result?
Thanks