Another reason to avoid the built-in custom chart types. It's a bit more
involved to set up, but it's in code so it will work repeatably once it's
done. Have your code create a line chart with all the data, then change the
appropriate series to columns, and put the appropriate series onto the
secondary axis.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______
"theLuggage" <(E-Mail Removed)> wrote in message
news:07D9A62E-C6D1-402E-BC02-(E-Mail Removed)...
> I'm not sure I was clear on the problem. The problem is that in the
> foreign
> language version of Excel, there is no Custom chart type that corresponds
> to
> the English TypeName. For example, in German the TypeName is not "Line -
> Column". It is whatever the German equivalent is. So it fails with an
> error
> saying that "Line - Column" is not a valid type. If I use the German
> equivalent of "Line - Column" it works fine.
>
> Does that make more sense?
>
> Thanks again for the help.
>
> "theLuggage" wrote:
>
>> We have a fairly sophisticated Excel AddIn that generates all sorts of
>> Chart
>> types. It works fine in English versions of Excel, but not foreign
>> langauage
>> versions.
>>
>> We've narrowed down the problem to when we're assigning the TypeName when
>> we
>> create a chart. Here's an example of three types that don't work:
>> ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:="Line -
>> Column"
>> ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:= "Line -
>> Column
>> on 2 Axes"
>> ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:="Lines on 2
>> Axes"
>>
>> The issue seems to be that the TypeName is localized to the native
>> language.
>> Does Excel have IDs or constants we can use? I've seen the list of
>> constants for the standart Chart types. But there doesn't seem to be
>> constants for the custom types.
>>
>> Thanks in advance for your help.