Afficher un message
Vieux 05/03/2006, 22h33   #5 (permalink)
Hervé
XLDnaute Barbatruc
 
Avatar de Hervé
 
Date d'inscription: février 2005
Localisation: Saint-Etienne
Version Excel : Excel XP (PC)
Messages: 4 450
Par défaut Re:Formule dans commentaire

Bonsoir cb60, pascal, tata jeannine.

peut etre que ce code pourrait aider :


Citation:
Sub Bouton18_QuandClic()
Dim c As Range

For Each c In ActiveSheet.UsedRange
* * * *
If c.HasFormula Then
* * * * * * * *
With c
* * * * * * * * * * * *
IfNot .Comment IsNothingThen .Comment.Delete
* * * * * * * * * * * * .AddComment
* * * * * * * * * * * * .Comment.Text Text:=c.FormulaLocal
* * * * * * * * * * * * .Comment.Visible =
False
* * * * * * * *
End With
* * * *
End If
Next c

* * * * * * * * * * * *
End Sub
voir en pièce jointe.

salut [file name=Barrememo_20060305223305.zip size=26419]http://www.excel-downloads.com/components/com_simpleboard/uploaded/files/Barrememo_20060305223305.zip[/file]
Fichiers attachés
Type de fichier : zip Barrememo_20060305223305.zip (25,8 Ko, 5 affichages)
Hervé est déconnecté   Réponse avec citation