Bonjour j'aimerais faire un cammenbert en automatique en VBA excel
je fais une macro pour m'afficher le code mais lorsque j'execute la macro il me manque les valeurs %
quelqu'un pourrais m'aider ou si quelqu'un connais bien les options du cammenbert en vba excel merci
voila ce que j'ai eu:
im dbl As Integer
titre = "REP"
'dbl = Sheets(titre).Range("A65536").End(xlUp).Row
'Sheets(titre).Range("A" & dbl + 2 & ":C" & dbl + 2).Merge
'Sheets(titre).Range("A" & dbl + 2) = "Graphique Totaux et Pourcentage Diffusion Payée par Zone:"
Set nom = Charts.Add
nom.ChartType = xlLineMarkers
nom.Name = titre & " " & Sheets(titre).Range("D6").Value
nom.ngraph.ChartType = xlPie
nom.SetSourceData Source:=Sheets(titre).Range("A588:C588"), PlotBy _
:=xlRows
nom.SeriesCollection(1).XValues = "=REP!R578C1:R585C1"
nom.SeriesCollection(1).Values = "=REP!R578C16:R585C16"
nom.SeriesCollection(1).Name = "=REP!R6C4"
nom.Location Where:=xlLocationAsNewSheet
End Sub
je fais une macro pour m'afficher le code mais lorsque j'execute la macro il me manque les valeurs %
quelqu'un pourrais m'aider ou si quelqu'un connais bien les options du cammenbert en vba excel merci
voila ce que j'ai eu:
im dbl As Integer
titre = "REP"
'dbl = Sheets(titre).Range("A65536").End(xlUp).Row
'Sheets(titre).Range("A" & dbl + 2 & ":C" & dbl + 2).Merge
'Sheets(titre).Range("A" & dbl + 2) = "Graphique Totaux et Pourcentage Diffusion Payée par Zone:"
Set nom = Charts.Add
nom.ChartType = xlLineMarkers
nom.Name = titre & " " & Sheets(titre).Range("D6").Value
nom.ngraph.ChartType = xlPie
nom.SetSourceData Source:=Sheets(titre).Range("A588:C588"), PlotBy _
:=xlRows
nom.SeriesCollection(1).XValues = "=REP!R578C1:R585C1"
nom.SeriesCollection(1).Values = "=REP!R578C16:R585C16"
nom.SeriesCollection(1).Name = "=REP!R6C4"
nom.Location Where:=xlLocationAsNewSheet
End Sub