J
JOUB 42
Guest
Bonjour à tous et a Petchy
Je souhaiterai mette 2 chiffre après la virgule dans le code suivant
ou le positionner?
Private Sub Worksheet_SelectionChange ( ByVal Target As Range)
Set cmt = ActiveSheet. Comments
dim ValCell As Currency
for each c In cmt
c. delete
Next
on Error Resume Next
If Target.Value = "" Then
Else
ValCell= Target.Value * 6.55957
With Target. AddComment
.Text ValCell & "Frs"
.Shape. Height = 15
.Shape. Width = 100
End With
End If
End Sub
MERCI pour votre réponse
JOUB 42
Je souhaiterai mette 2 chiffre après la virgule dans le code suivant
ou le positionner?
Private Sub Worksheet_SelectionChange ( ByVal Target As Range)
Set cmt = ActiveSheet. Comments
dim ValCell As Currency
for each c In cmt
c. delete
Next
on Error Resume Next
If Target.Value = "" Then
Else
ValCell= Target.Value * 6.55957
With Target. AddComment
.Text ValCell & "Frs"
.Shape. Height = 15
.Shape. Width = 100
End With
End If
End Sub
MERCI pour votre réponse
JOUB 42