i am writing a macro that creates charts. I want to use a user defined chart
type (that I have) but I dont know how to write the code for this. My code is:

Charts.Add
With ActiveChart
..ApplyCustomType(xluserDefined, Standard)
..............
End with

As you may see the third line is wrong. How should you write this? Please
help me!