[excel/VBA] aide sur macro
Fermé
antic80
Messages postés
4785
Date d'inscription
lundi 30 mai 2005
Statut
Contributeur
Dernière intervention
9 septembre 2009
-
12 mars 2008 à 09:54
antic80 Messages postés 4785 Date d'inscription lundi 30 mai 2005 Statut Contributeur Dernière intervention 9 septembre 2009 - 12 mars 2008 à 10:39
antic80 Messages postés 4785 Date d'inscription lundi 30 mai 2005 Statut Contributeur Dernière intervention 9 septembre 2009 - 12 mars 2008 à 10:39
A voir également:
- [excel/VBA] aide sur macro
- Telecharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Liste déroulante excel - Guide
- Comment calculer la moyenne sur excel - Guide
- Si et excel - Guide
- Trier sur excel - Guide
1 réponse
antic80
Messages postés
4785
Date d'inscription
lundi 30 mai 2005
Statut
Contributeur
Dernière intervention
9 septembre 2009
1 161
12 mars 2008 à 10:39
12 mars 2008 à 10:39
j'ai réussi a faire ce morceau de code
For i = 1 To lastline
If Cells(i, 2).Text = "2006" And Cells(i, 1).Text = "Décembre" And Cells(i, 4) = secteur Then
Cells(i, 2).Select
j = j + 1
Janvier(j) = ActiveCell.Offset(0, 3).Value
End If
Next i
j'arrive a stocker dans le tableau janvier les données de chaque ligne
comment je dois faire pour additionner le contenu d'un tableau
For i = 1 To lastline
If Cells(i, 2).Text = "2006" And Cells(i, 1).Text = "Décembre" And Cells(i, 4) = secteur Then
Cells(i, 2).Select
j = j + 1
Janvier(j) = ActiveCell.Offset(0, 3).Value
End If
Next i
j'arrive a stocker dans le tableau janvier les données de chaque ligne
comment je dois faire pour additionner le contenu d'un tableau