error in XValues

N

nanz

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top