Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error in XValues

Hello,

I'm trying to create an Excel chart ...

When I write the following code:

GRAPH.Chart.SeriesCollection(1).XValues = XLAPP.Worksheets("Raw Chart
Data").Range("b1", "cz1")

I get this error:

An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll

Additional information: Type mismatch.

Please, can anybody help me?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default error in XValues

Try syntax:

........Range("B1:CZ1")

"nanz" wrote:

Hello,

I'm trying to create an Excel chart ...

When I write the following code:

GRAPH.Chart.SeriesCollection(1).XValues = XLAPP.Worksheets("Raw Chart
Data").Range("b1", "cz1")

I get this error:

An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll

Additional information: Type mismatch.

Please, can anybody help me?


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
Error accessing external object property XVALUES sergio Excel Discussion (Misc queries) 2 February 7th 07 04:47 PM
XValues Property and 400 Error C. Collings Charts and Charting in Excel 0 February 1st 07 05:09 PM
(Un)usual "cannot set Xvalues" error message [email protected] Excel Programming 1 January 27th 05 09:24 PM
Error 1004: Unable to set the XValues of the Series Class jonathanmiller Excel Programming 0 June 23rd 04 12:20 AM
XValues and values. y Excel Programming 3 April 10th 04 03:13 AM


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

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

About Us

"It's about Microsoft Excel"