Vérification de status URL
Fermé
fmayouf
Messages postés
1
Date d'inscription
mardi 6 juin 2017
Statut
Membre
Dernière intervention
6 juin 2017
-
6 juin 2017 à 10:12
ExcelGuru1 Messages postés 15 Date d'inscription lundi 26 juin 2017 Statut Membre Dernière intervention 6 juillet 2017 - 26 juin 2017 à 03:22
ExcelGuru1 Messages postés 15 Date d'inscription lundi 26 juin 2017 Statut Membre Dernière intervention 6 juillet 2017 - 26 juin 2017 à 03:22
A voir également:
- Vérification de status URL
- Lien url - Guide
- Tray status - Télécharger - Divers Utilitaires
- Vérification url - Guide
- The requested url was rejected. please consult with your administrator. ✓ - Forum Réseaux sociaux
- Atlas pro url serveur invalide - Forum TV & Vidéo
1 réponse
ExcelGuru1
Messages postés
15
Date d'inscription
lundi 26 juin 2017
Statut
Membre
Dernière intervention
6 juillet 2017
1
Modifié le 26 juin 2017 à 03:23
Modifié le 26 juin 2017 à 03:23
Bonjour,
Voici une macro qui je l'espère répond parfaitement à ton besoin :
Voici Source : http://www.ozgrid.com/forum/showthread.php?t=151332
Bonne soirée
Voici une macro qui je l'espère répond parfaitement à ton besoin :
Private Sub TestLinks()
Dim oLink As Hyperlink
For Each oLink In ActiveSheet.Hyperlinks
'// Check for sillies...
If oLink.Address <> "" And InStr(oLink.Address, "mailto") = 0 Then
If Not TestURL(oLink.Address) Then
Debug.Print oLink.Address
End If
End If
Next
Set oLink = Nothing
End Sub
Private Function TestURL(strURL As String) As Boolean
'// Testing a URL
Dim oURL As New WinHttpRequest
On Error Goto TestURL_Err
With oURL
.Open "GET", strURL, False
.Send
TestURL = (.Status = 200)
End With
TestURL_Err:
'// It'll just fall out. If errored then
'// Return Value is the default 0 (False)
Set oURL = Nothing
End Function
Voici Source : http://www.ozgrid.com/forum/showthread.php?t=151332
Bonne soirée