Sub GENERERqRcODE()
'patricktoulon
'Insérer une image qrcode dynamique
Dim C As Range
With ActiveSheet
.Pictures.Delete
For i = 2 To .Cells(Rows.Count, 3).End(xlUp).Row
If .Cells(i, 3) <> "" Then
Set cel = Cells(i, 3)
sLink = "https://api.qrserver.com/v1/create-qr-code/?size=90x90&data=" & Cells(i, 3).Text
With .Pictures.Insert(sLink)
'.Width = 120
.Name = "cell_" & cel.Address(0, 0)
.Left = cel.Left + ((cel.Width - .Width) / 2)
.Top = cel.Top + ((cel.Height - .Height) / 2)
End With
End If
Next
End With
End Sub