Thanks for your response p45cal. here;s the bit that creates the charts...
Private Sub OptionButton2_Click()
'revenue trends
On Error Resume Next
ActiveSheet.ChartObjects.Delete
Dim objCht As ChartObject
On Error Resume Next
Set objCht = ActiveSheet.ChartObjects("Challenges")
If Not objCht Is Nothing Then
objCht.Delete
End If
ActiveSheet.Shapes.AddChart.Select
ActiveChart.Parent.Name = "Challenges"
ActiveChart.HasLegend = False
ActiveChart.HasTitle = True
ActiveChart.ChartTitle.Text = Worksheets("Dashboard").Range("E9")
ActiveChart.ChartTitle.Font.Size = 12
ActiveChart.ChartTitle.Font.Name = "Arial Unicode MS"
ActiveChart.ChartType = xlColumnClustered
ActiveChart.Location Where:=xlLocationAsObject, Name:=ActiveSheet.Name
ActiveChart.SetSourceData Source:=Sheets("PivotRevenue").Range("A4:B18")
With ActiveChart.Parent
.Left = 250
.Top = 200
.Width = 600
.Height = 500
End With
End Sub
Private Sub OptionButton1_Click()
'volume on intruemnt level
On Error Resume Next
ActiveSheet.ChartObjects.Delete
Dim objCht As ChartObject
On Error Resume Next
Set objCht = ActiveSheet.ChartObjects("Challenges")
If Not objCht Is Nothing Then
objCht.Delete
End If
ActiveSheet.Shapes.AddChart.Select
ActiveChart.Parent.Name = "Challenges"
ActiveChart.HasLegend = True
ActiveChart.Legend.Select
Selection.Position = xlBottom
ActiveChart.HasTitle = True
ActiveChart.ChartTitle.Text = Worksheets("Dashboard").Range("E9")
ActiveChart.ChartTitle.Font.Size = 12
ActiveChart.ChartTitle.Font.Name = "Arial Unicode MS"
ActiveChart.ChartType = xlColumnClustered
ActiveChart.Location Where:=xlLocationAsObject, Name:=ActiveSheet.Name
ActiveChart.SetSourceData Source:=Sheets("PivotTrade").Range("A6:CN20")
With ActiveChart.Parent
.Left = 250
.Top = 200
.Width = 600
.Height = 500
End With
End Sub
Private Sub OptionButton3_Click()
'volume on account level
On Error Resume Next
ActiveSheet.ChartObjects.Delete
Dim objCht As ChartObject
On Error Resume Next
Set objCht = ActiveSheet.ChartObjects("Challenges")
If Not objCht Is Nothing Then
objCht.Delete
End If
ActiveSheet.Shapes.AddChart.Select
ActiveChart.Parent.Name = "Challenges"
ActiveChart.HasLegend = True
ActiveChart.Legend.Select
Selection.Position = xlBottom
ActiveChart.HasTitle = True
ActiveChart.ChartTitle.Text = Worksheets("Dashboard").Range("E9")
ActiveChart.ChartTitle.Font.Size = 12
ActiveChart.ChartTitle.Font.Name = "Arial Unicode MS"
ActiveChart.ChartType = xlColumnClustered
ActiveChart.Location Where:=xlLocationAsObject, Name:=ActiveSheet.Name
ActiveChart.SetSourceData Source:=Sheets("PivotAccount").Range("A3:L18")
With ActiveChart.Parent
.Left = 250
.Top = 200
.Width = 600
.Height = 500
End With
End Sub