during this code retrive an alert message , see image:
trnslate in english from italian:
avviso di sicurezza WINDOWS
to allow the website to provide personalized information it is necessary to download a small file called a cookie to your computer. download the file?
Rich (BB code):
Private Sub TEST_OK()
Dim I As Long, TEXT As String, REQ As Object, DOC As Object, TABL As Object, TR As Object, LINK As Object, URL As String
Dim N As Integer
Set REQ = CreateObject("Msxml2.XMLHTTP")
Set DOC = CreateObject("htmlfile")
REQ.Open "GET", "https://www.aifa.gov.it/liste-dei-farmaci", False
REQ.send
DOC.body.innerHTML = REQ.responseText
N = 0
For Each TABL In DOC.getElementsByTagName("table")
For Each TR In TABL.getElementsByTagName("tr")
TEXT = TR.innerText
If InStr(1, TEXT, "Data ultimo aggiornamento:", vbTextCompare) Then
I = I + 1
DTAGG = Trim(Split(TEXT, ":")(1))
If Not IsNumeric(Left(DTAGG, 2)) Then
Call TRANSFOR_DATE(DTAGG)
End If
Exit For
End If
Next TR
For Each LINK In TABL.getElementsByTagName("a")
TEXT = LINK.href
TEXT = Replace(TEXT, "about:/", "https://www.aifa.gov.it/")
URL = TEXT
If InStr(1, URL, "registri", vbTextCompare) = 0 Then
Call DownloadFileFromURL(URL)
NOMEFILE = UCase(Mid(URL, InStrRev(URL, "/") + 1))
SQL = "INSERT INTO FARMACI (DTAGG, URL, NOME_FILE) VALUES ('" & DTAGG & "','" & URL & "','" & NOMEFILE & "')"
CON.Execute (SQL)
N = N + 1
End If
Next LINK
Next TABL
End Sub
avviso di sicurezza WINDOWS
to allow the website to provide personalized information it is necessary to download a small file called a cookie to your computer. download the file?