Una famiglia di software per fogli di calcolo Microsoft con strumenti per l'analisi, la creazione di grafici e la comunicazione dei dati.
Ciao Norman David Jones ho provato con piacere il tuo Progetto
Pero' ho notato che ; si tu apri la pagina dichiarata dall'ink scaricando il file
Pero' non scarichi nessun Dato dal sito al foglio di excel
Mentre io prima riuscivo a scaricare i dati con l'uso del vba Nel foglio di excel
Io in pratica facevo questo modo ;
" Option Explicit
Sub GetSocial()
Dim html As New HTMLDocument
Dim http As Object
Dim links As Object
Dim link As HTMLHtmlElement
Dim counter As Long
Dim website As Range
Dim row As Long
Dim continue As Boolean
Dim respHead As String
Dim OggCol As Object, OggCol1 As Object
Application.ScreenUpdating = False
row = 11
continue = True
Set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Do While continue
Set website = Range("A" & row)
If Len(website.Value) < 1 Then
continue = False
Exit Sub
End If
If website Is Nothing Then
continue = False
End If
With http
On Error Resume Next
.Open "GET", website.Value, False
.send
Range("B" & row & ":e" & row).Clear
If Err.Number = 0 Then
If .Status = 200 Then
html.body.innerHTML = http.responseText
'Set links = HTML.getElementsByTagName("a")
Set OggCol = .getElementsByClassName("col-sm-12")
For Each link In links
If InStr(UCase(link.outerHTML), "LINKEDIN") Then
website.Sheets("Sheet1").Cells(1, 1) = OggCol1(0).innerText
End If
Next
End If
Set website = Nothing
Else
website.Offset(0, 1).Value = "Error with website address"
End If
On Error GoTo 0
End With
row = row + 1
Loop
Application.ScreenUpdating = True
End Sub "
Anche se a, dire il vero attualmente non mi funziona perché continua a darmi errore qui :
Dim html As New HTMLDocument
E non capisco il perché !
Grazie del tuo aiuto Saluti da A.Maurizio