Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Creating a chart in C#

I'm creating a chart and trying to set the source data using this call:

chart.SetSourceData((EXCEL.Range)(((EXCEL.Workshee t)excel.Worksheets["Sheet1"]).Columns["T:Z", missing]), 2);

The chart should use columns T-Z as its data source.
I'm getting an exception on this code saying type mismatch. the indexer for
Columns will only accept an integer. How do then I create the range object
for all these columns?

Thanks,

Inbar.
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
creating chart emendoza1 New Users to Excel 2 September 6th 09 04:25 PM
Creating a mix of column and scatter chart on one chart. Matt G[_3_] Charts and Charting in Excel 1 June 17th 09 05:25 AM
Creating Pie Chart WLMPilot Charts and Charting in Excel 3 April 23rd 09 05:20 PM
Creating a chart(? pie chart) that shows customers,dates and machi Mark M Charts and Charting in Excel 1 August 20th 08 10:19 PM
Creating a pie chart Val Charts and Charting in Excel 1 January 20th 05 07:12 PM


All times are GMT +1. The time now is 06:21 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"