B
benjamin
Guest
bonjour a tous
j'ai un petit problème en vba et oui encore
j'ai cette source:
Sub imgComment()
On Error Resume Next
Dim nom$
For Each c In Selection
nom = c.Value
If Not c = '' Then
With c
.AddComment
.Comment.Shape.Fill.UserPicture ActiveWorkbook.Path & '\\' & 'Photos' & '\\' & nom & '.jpg'
.Comment.Visible = False
'Masque le commentaire
End With
End If
Next
End Sub
cette macro fonctionne très bien mais ...
je voudrais que l'image que j'insère soit redimensionner suivant sa taille car sinon tout les commentaires ont la meme taille et donc les images sont disproportionnées
voila si qqun peut m'aider je l'en remercie d'avance
Merci
j'ai un petit problème en vba et oui encore
j'ai cette source:
Sub imgComment()
On Error Resume Next
Dim nom$
For Each c In Selection
nom = c.Value
If Not c = '' Then
With c
.AddComment
.Comment.Shape.Fill.UserPicture ActiveWorkbook.Path & '\\' & 'Photos' & '\\' & nom & '.jpg'
.Comment.Visible = False
'Masque le commentaire
End With
End If
Next
End Sub
cette macro fonctionne très bien mais ...
je voudrais que l'image que j'insère soit redimensionner suivant sa taille car sinon tout les commentaires ont la meme taille et donc les images sont disproportionnées
voila si qqun peut m'aider je l'en remercie d'avance
Merci