Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling ApplyCustomType for Excel 2002 in C#

Hello, I'm trying to call the ApplyCustomType method in a C#
application using the Microsoft Excel 10.0 object library. I'm using
this method to use a user-defined chart type.

The method signature is
ApplyCustomType ( Excel.XlChartType ChartType , System.Object TypeName
)

What's throwing me is the first parameter. XlChartType is an
enumeration but there is no "user-defined" member. All members map to
a specific pre-defined chart type.

The code below was generated by running a VBA macro in Excel. The
ApplyCustomType method takes a value of xlUserDefined as the first
parameter.

Chart.ApplyCustomType(
ActiveChart.ApplyCustomType ChartType:=xlUserDefined,
TypeName:="ByVendor"

Does any know what to pass as the first parameter in ApplyCustomType
for C#?

Thanks,


Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Calling ApplyCustomType for Excel 2002 in C#

Sj wrote:
Does any know what to pass as the first parameter in ApplyCustomType
for C#?

22 ?

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ApplyCustomType in Excel 2007 faltamir Excel Discussion (Misc queries) 0 November 29th 07 03:52 PM
calling "Fact()" from a macro in excel 2002 Joe Farruggio Excel Worksheet Functions 1 December 3rd 06 10:58 PM
Outlook 2002 calendar dates exported to Excel 2002 sort incorrectl scampbell Excel Worksheet Functions 0 February 22nd 06 06:31 PM
Can you print labels using Excel 2002 in a Word 2002 mail merge? Individual_ Excel Discussion (Misc queries) 3 December 17th 04 08:39 PM
Excel 2002 files attached to Outlook 2002 EMails change size AJStadlin Excel Programming 1 October 15th 03 12:12 AM


All times are GMT +1. The time now is 08:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"