Bonjour saboh, merci pour ta réponse.
Cependant, ce code ne fonctionne pas
Sub BatchAddLink()
' Récupération des cellules pleines dans la colonne A de la feuille active
Dim myCells As Range
With ActiveSheet
Set myCells = Range(.Range("A2"), .Cells(.Cells.Count, 1).End(xlUp))
End With
' pour chaque cellule, ajout du lien
Dim c As Variant
For Each c In myCells
Call AddLink(c)
Next c
End Sub
J'obtiens l'erreur "type d'argument Byref incompatible.
J'ai donc remplacer Dim c As Variant par Dim c As Range, mais nouvelle erreur : "Erreur d'execution 6 Dépassement de capacité" pointé sur la ligne de code Set myCells = Range(.Range("A2"), .Cells(.Cells.Count, 1).End(xlUp))
Et là je sèche