I do not know how to work very well with excel, I have to make a graph using buttons and gave this error
Sub logs_acumulador()
'
' logs_acumulador Macro
'
'
ActiveChart.SetSourceData Source:=Range( _
"db_performance.producao[[#All],[logs_acumulador]]")
ActiveChart.SeriesCollection(1).XValues = "=Plan1!$A$5:$A$124"
End Sub