' Auteur : Pierre - P56 - http://tatiak.canalblog.com/
Sub Image_dans_Texte()
Dim ndf As Variant, W As Single, H As Single
ndf = Choix_Image
If Not ndf = False Then
On Error Resume Next
ActiveSheet.Shapes("_Test").Delete
With ActiveSheet.Pictures.Insert(ndf)
W = .Width
H = .Height
.Delete
End With
With ActiveSheet.Shapes.AddTextbox(1, 100, 50, W, H)
.Fill.UserPicture ndf
.Name = "_Test"
End With
End If
End Sub
Function Choix_Image() As String
ChDrive (Left(ActiveWorkbook.Path, 1))
ChDir ActiveWorkbook.Path
Choix_Image = Application.GetOpenFilename("Fichiers images,*.jpg;*.gif;*.png")
End Function