TamirBasin
New Member
- Joined
- Apr 11, 2017
- Messages
- 49
- Office Version
- 365
- Platform
- Windows
Hello,
I recorded then altered the following code to create a pivot chart:
I get an error when I try to give the chart a name.
where is my mistake?
Thank you,
Tamir
I recorded then altered the following code to create a pivot chart:
Code:
Sub CreatePivotChart()
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlColumnStacked
ActiveChart.SetSourceData Source:=Sheets("PivRetained").Range("A3:F34")
ActiveChart.Location Where:=xlLocationAsObject, Name:="PivRetained"
ActiveChart.Name = "Active Hires By Performance 2015" ' Here I get the error
End Sub
I get an error when I try to give the chart a name.
where is my mistake?
Thank you,
Tamir