Default internet retrieval error

willerdem

New Member
Joined
May 20, 2015
Messages
7
Hello there,


I usually use the following method to download data over the Internet.
When the code runs, I get the following screen error over time and it stuck on do loop after a while. How to write a code structure to avoid this.



Code:
[COLOR=#000000]Sub verial()[/COLOR]
Dim i As Integer, j As Integer

Cells.ClearContents

Const URL As String = _
"http://www.maliyetbul.com/ha09-13-Fiyat-farki-icin-endeksler.php"

   Set ie = CreateObject("InternetExplorer.Application")
   
    ie.Navigate URL
    
    Do Until ie.ReadyState = 4: DoEvents: Loop
    Do While ie.Busy: DoEvents: Loop
     
   On Error Resume Next
   
        'Veriler...
    
     Set a = ie.document.getelementsbytagname("table")
    With ie.document.getelementsbytagname("table").Item(0)
    
     Set b = ie.document.getelementsbytagname("table").Item(0)
     
          For i = 1 To .Rows.Length - 1
        t = .Rows.Length
            'For j = 0 To .Rows(1).Cells.Length - 1

                Cells(1, 1) = .Rows(i).Cells(4).innertext
            Next
y = y + 1

      '  Next

    End With
    

    
    ie.Quit: Set ie = Nothing:
    'MsgBox "Bitti", vbInformation [COLOR=#000000]End Sub[/COLOR]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top