Can somebody help, I need to exclude two charts from the move ("chart1", "chart2") Tried AND operator and ElseIf with out getting a error.
[VBA]
Public Sub ManageCharts()
Dim mpChartObj As ChartObject
'move every shap off-picture
For Each mpChartObj In ActiveSheet.ChartObjects
If mpChartObj.Name <> "chart1" Then
mpChartObj.Left = ActiveSheet.Range("GA1").Left
mpChartObj.Top = ActiveSheet.Range("GA1").Top
End If
Next mpChartObj
'now test which button pressed and move that chart on-picture
Select Case Application.Caller
Case "btnRegionalSummary": Call MoveChart("chartRegionalSummary")
Case "btnRegionalPie": Call MoveChart("chartRegionalPie")
Case "btnStateSales": Call MoveChart("chartStateSales")
Case "btnStateBudget": Call MoveChart("chartStateBudget")
End Select
End Sub
[/VBA]