Professional Documents
Culture Documents
oWS = ActiveSheet
oChts = oWS.ChartObjects
oCht = oChts.Add(100, 100, 150, 150)
Exit Sub
Err_Chart:
MsgBox(Err.Number & " - " & Err.Description)
Err.Clear()
Resume Next
End Sub
The code uses Chartwizard method to modify the properties of the given chart. Yo
u can use this method to quickly format a chart without setting all the individu
al properties. This method is noninteractive, and it changes only the specified
properties.