View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vacation's Over Vacation's Over is offline
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?