Guys,
I have a some problem with connecting between VBA Excel and web site.
I wrote a macro to insert the data from excel but there is one problem with displaying the correct view.
I use this site to get the price of the bonds:
http://www.micex.com/marketdata/quotes
it is the site of russian exchange
First of all I write the ISIN code, for example RU000A0E6X12, in the "Quote Search" field and then press Enter for getting the data. After it I can choose the History information or Online from the last field in the left margin. I want to chose "History" and after it the dates from and till are appearing automatically. The automatization of it is my task. And I have only one problem in the end.
The program:
There is the problem with the automated appearing of dates from and till. The line in the macro![]()
Sub DoBrowse2() Dim TargetFrame As String Dim IE As Object Set IE = CreateObject("Internetexplorer.Application") IE.Visible = True IE.Navigate "http://www.micex.com/marketdata/quotes" While IE.Busy DoEvents Wend IE.document.getElementById("secid").Value = "RU000A0E6X12" IE.document.forms(0).submit While IE.Busy DoEvents Wend IE.document.getElementById("data_type").selectedIndex = 1 While IE.Busy DoEvents Wend IE.document.getElementById("date_from").Value = "01.03.2008" IE.document.getElementById("date_till").Value = "01.12.2009" IE.document.forms("Искать").submit End Sub
IE.document.getElementById("data_type").selectedIndex = 1
choose the history information but the dates from and till dont appear. If you do it by hand it appears. Who knows the solution?
Thanks in advance for help
Bookmarks