N
Neophale
Guest
Bonjour je voudrais qu'avant d'enregistrer il y est une vérification dans la colonne G pour voir que toutes les valeurs soit des liens vers un site internet(hyperlink)
Exemple Google
J'ai testé ce code sans succès
l = 1
test2 = 1
Do
l = l + 1
If Cells(l, 7).Value = "" Then test2 = 2
Loop While Not test2 = 2
For i = 2 To l - 1
If Cells(i, 7).Value Is Not Hyperlink Then
msg = "Erreur adresse internet."
StyleBoîteDialogue = vbOKOnly + vbCritical And Title = "Erreur."
réponse = MsgBox(msg, StyleBoîteDialogue, Title)
Cells(i, 7).Select
GoTo fin
End If
Next i
La zone en gras affiche une erreur d'objet
Exemple Google
J'ai testé ce code sans succès
l = 1
test2 = 1
Do
l = l + 1
If Cells(l, 7).Value = "" Then test2 = 2
Loop While Not test2 = 2
For i = 2 To l - 1
If Cells(i, 7).Value Is Not Hyperlink Then
msg = "Erreur adresse internet."
StyleBoîteDialogue = vbOKOnly + vbCritical And Title = "Erreur."
réponse = MsgBox(msg, StyleBoîteDialogue, Title)
Cells(i, 7).Select
GoTo fin
End If
Next i
La zone en gras affiche une erreur d'objet