Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Freddie,
Try this: Set ch = Charts.Add ch.ApplyCustomType ChartType:=xlUserDefined, TypeName:="Mikes" And replace Mikes with the name of your custom chart. Mike "Freddie Mac" wrote: 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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using vba to copy user-defined chart type | Excel Programming | |||
user-defined chart template location | Charts and Charting in Excel | |||
User-defined data type; Error: Only User-defined types... | Excel Programming | |||
User-defined chart type deployment | Excel Programming | |||
path user defined chart | Excel Programming |