Calcul moyenne sur VBA excel
Résolu/Fermé
A voir également:
- Moyenne vba
- Excel moyenne - Guide
- Moyenne excel anglais - Guide
- Excel compter cellule couleur sans vba - Guide
- Vba attendre 1 seconde ✓ - Forum VB / VBA
- Mkdir vba ✓ - Forum VB / VBA
2 réponses
Utilisateur anonyme
11 janv. 2008 à 14:25
11 janv. 2008 à 14:25
Bonjour,
Lupin
Sub CalculMoyenne() Dim K As Long, Formule As String Range("A1").Select K = (Range("A1:IV1").End(xlToRight).Column + 1) Cells(1, K).Value = "Moyenne" Formule = "=AVERAGE(" & Cells(45, 1).Address & ":" & Cells(45, K - 1).Address & ")" Cells(45, K).Value = Formule End Sub '
Lupin