Excel - Boucle for each, ajout de commentaires
Résolu/Fermé
jean_patrice
Messages postés
22
Date d'inscription
lundi 1 juin 2015
Statut
Membre
Dernière intervention
3 août 2015
-
Modifié par jean_patrice le 3/08/2015 à 20:07
tyranausor Messages postés 3545 Date d'inscription jeudi 6 août 2009 Statut Membre Dernière intervention 1 avril 2022 - 4 août 2015 à 11:50
tyranausor Messages postés 3545 Date d'inscription jeudi 6 août 2009 Statut Membre Dernière intervention 1 avril 2022 - 4 août 2015 à 11:50
A voir également:
- Vba boucle for each
- Download instagram for pc - Télécharger - Divers Communication
- Find vba - Astuces et Solutions
- Incompatibilité de type vba ✓ - Forum Programmation
- Saveaspdf.exe for office 2007 - Télécharger - Bureautique
- Vba attendre 1 seconde ✓ - Forum VB / VBA
2 réponses
tyranausor
Messages postés
3545
Date d'inscription
jeudi 6 août 2009
Statut
Membre
Dernière intervention
1 avril 2022
2 031
3 août 2015 à 20:12
3 août 2015 à 20:12
Bonjour, une question toute bête, qu'est-ce que c'est RefEdit1.Value?
jean_patrice
Messages postés
22
Date d'inscription
lundi 1 juin 2015
Statut
Membre
Dernière intervention
3 août 2015
3 août 2015 à 20:57
3 août 2015 à 20:57
j'ai trouvé !
si y en a que ça intéresse voici le code :
si y en a que ça intéresse voici le code :
Private Sub CommandButton1_Click()
Dim plage_com As String
plage_com = RefEdit1.Value
Dim cell As range
For Each cell In range(plage_com)
cell.ClearComments
cell.AddComment
cell.Comment.Text Text:=InputBox("Tapez votre texte", "Ajout du texte")
With cell.Comment
.Shape.Width = 115
.Shape.Height = 15
.Shape.OLEFormat.Object.Font.Size = 10
End With
Next cell
Unload Me
End Sub
tyranausor
Messages postés
3545
Date d'inscription
jeudi 6 août 2009
Statut
Membre
Dernière intervention
1 avril 2022
2 031
4 août 2015 à 11:50
4 août 2015 à 11:50
Tant mieux pour toi que tu aies trouvé par toi-même!
3 août 2015 à 20:22