Bonjour,
j'ai trouvé cela :
ci-joint,
Sub CopyHyperlinks()
' vu ici https://www.extendoffice.com/fr/documents/excel/4297-excel-copy-hyperlink-from-one-cell-to-another.html
Dim xSRg As Range
Dim xDRg As Range
Dim I As Integer
Dim xAddress As String
On Error Resume Next
xAddress = ActiveWindow.RangeSelection.Address
Set xSRg = Application.InputBox("Veuillez sélectionner la plage d'origine pour laquelle vous souhaitez copier des hyperliens:", "KuTools For Excel", xAddress, , , , , 8)
If xSRg Is Nothing Then Exit Sub
Set xDRg = Application.InputBox("Veuillez sélectionner la nouvelle plage dans laquelle vous souhaitez coller les liens hypertexte uniquement.", "Hyperlien pour Excel", , , , , , 8)
If xDRg Is Nothing Then Exit Sub
Set xDRg = xDRg(1)
For I = 1 To xSRg.Count
If xSRg(I) <> "" And xDRg.Offset(I - 1) <> "" Then
If xSRg(I).Hyperlinks.Count = 1 Then
xDRg(I).Hyperlinks.Add xDRg(I), xSRg(I).Hyperlinks(1).Address
End If
End If
Next
End Sub
crdlt,
André