DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Test()
'Haluk - 07/06/2019
'E-Posta: sa4truss@gmail.com
Dim IE As Object, URL As String
Range("A1:C1") = ""
URL = "https://www.excel.web.tr/"
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate URL
Do While IE.busy
DoEvents
Loop
Do Until IE.ReadyState = 4
DoEvents
Loop
Set Images = IE.Document.getElementsByTagName("img")
Range("A1") = Images(0).src
Range("B1") = Images(0).Width
Range("C1") = Images(0).Height
Set IE = Nothing
End Sub
Sub Test2()
'Haluk - 07/06/2019
'E-Posta: sa4truss@gmail.com
Dim IE As Object, URL As String
Range("B2:C2") = ""
URL = Range("A2").Text ' >>> A2 hucresindeki metin: https://www.excel.web.tr/styles/default/xenforo/xenforo-logo.png
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate URL
Do While IE.busy
DoEvents
Loop
Do Until IE.ReadyState = 4
DoEvents
Loop
Set Images = IE.Document.getElementsByTagName("img")
Range("B2") = Images(0).Width
Range("C2") = Images(0).Height
Set IE = Nothing
End Sub
Sub Test3()
'Haluk - 07/06/2019
'E-Posta: sa4truss@gmail.com
Dim IE As Object, URL As String
Range("B2:C" & Range("A" & Rows.Count).End(xlUp).Row) = ""
Set IE = CreateObject("InternetExplorer.Application")
For i = 2 To Range("A" & Rows.Count).End(xlUp).Row
URL = Range("A" & i).Text
IE.Navigate URL
Do While IE.busy
DoEvents
Loop
Do Until IE.ReadyState = 4
DoEvents
Loop
Range("B" & i) = IE.Document.getElementsByTagName("img").Item(0).Width
Range("C" & i) = IE.Document.getElementsByTagName("img").Item(0).Height
Next
Set IE = Nothing
End Sub