MASSJIPE
XLDnaute Impliqué
Bonjour
J'utilise le code suivant sur un classeur vierge pas de soucis, mais je mets le code sur un autre classeur j'ai un soucis sur le nf
Private Sub CommandButton1_Click()
nf = Application.GetOpenFilename("Fichiers jpg,*.jpg")
If nf = False Then Exit Sub
With ActiveCell
.ClearComments
.AddComment
.Comment.Shape.Fill.UserPicture nf
.Comment.Shape.Height = 250
.Comment.Shape.Width = 250
.Comment.Shape.ScaleHeight 1.2, msoFalse, msoScaleFromTopLeft
End With
End Sub
Cordialement
J'utilise le code suivant sur un classeur vierge pas de soucis, mais je mets le code sur un autre classeur j'ai un soucis sur le nf
Private Sub CommandButton1_Click()
nf = Application.GetOpenFilename("Fichiers jpg,*.jpg")
If nf = False Then Exit Sub
With ActiveCell
.ClearComments
.AddComment
.Comment.Shape.Fill.UserPicture nf
.Comment.Shape.Height = 250
.Comment.Shape.Width = 250
.Comment.Shape.ScaleHeight 1.2, msoFalse, msoScaleFromTopLeft
End With
End Sub
Cordialement