Hello Jaime.
For instance, in your code, you use the following:IF NOT INLIST( .ChartType, xl3DPie, xlPie, xlPieOfPie, xlPieExploded, xl3DPieExploded, xlBarOfPie )
Where are these constants defined? I created an include file by downloading
GetConstants.exe from Rick Strahl's web site. I then ran it over Graph9.olb (the type library for MsGraph 9) and it automagically created the include file for me.