- Katılım
- 21 Aralık 2010
- Mesajlar
- 135
- Excel Vers. ve Dili
- MS Office 2007 Ing.
Günaydın iyi haftalar arkadaşlar,
http://www.statarea.com/predictions/date/2016-01-15/competition
Yukarıdaki web sitesinden veri almaya çalışıyorum ama elimdeki ornekler ile alamadım,
Aşağıdaki kod ile ilerlemeye çalıştım ama tıkandım ,
Bana bu konuda destek verebilirseniz çok sevinirim ,
İyi çalışmalar,
http://www.statarea.com/predictions/date/2016-01-15/competition
Yukarıdaki web sitesinden veri almaya çalışıyorum ama elimdeki ornekler ile alamadım,
Aşağıdaki kod ile ilerlemeye çalıştım ama tıkandım ,
Bana bu konuda destek verebilirseniz çok sevinirim ,
İyi çalışmalar,
Kod:
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Navigate url
.Visible = True
.Width = 300
.Height = 400
.Left = 50
Do Until IE.ReadyState = 4: DoEvents: Loop
Do Until IE.ReadyState = 4: DoEvents: Loop
Do While IE.Busy: DoEvents: Loop
DoEvents: DoEvents: DoEvents: DoEvents: DoEvents: DoEvents: DoEvents: DoEvents: DoEvents: DoEvents
Set HTML_Body = IE.Document.GetElementsByTagName("Body").Item(0)
Set HTML_Tables = HTML_Body.GetElementsByTagName("Table")
Range("A1").Select
For w = 0 To 100
Set MyTable = HTML_Tables(w)
For x = 0 To 30
Application.StatusBar = x
sira = [a1048576].End(3).Row + 1
Cells(sira, 1).Select
Cells(sira, 1) = "'" & w & "-" & x
Cells(sira, 2) = MyTable.Rows(x).Cells(0).InnerText
Cells(sira, 3) = MyTable.Rows(x).Cells(1).InnerText
Cells(sira, 4) = MyTable.Rows(x).Cells(2).InnerText
Next
Next
.Quit
End With
