Bonjour
Automatisatio, de la mise a jour d'un graph via une macro
La taille du graph est variable selon un range de mois (ex, de jan a juin) (ChargeA) + un mois de ref (ChargeB)
J'ai ce code :
1 2 3 4 5
| ActiveSheet.ChartObjects("Graph1").Activate
ChargeA = Range("D7").Resize(1, 0 & NBMoisA).Address(True, True, xlA1)
ChargeB = Range("D7").Offset(0, NBMoisB).Address
ActiveChart.SeriesCollection(1).Values = _
"=TBL_src_graph!" & ChargeA & ";TBL_src_graph!" & ChargeB |
Cela génère une erreur d'exécution 1004 (erreur def par l'application ou par l'objet). Pourtant, la valeur retournée (msgbox) est correcte
=TBL_src_graph!$D$7:$I$7;TBL_src_graph!$W$7
Quelqu'un a une idée ?
Partager