LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add data series to excel chart

I have an envelope on a chart in Excel.  I would like to add same test data to the chart.  I can open the workbook and get my data on a worksheet, but can't figure out how to add the data series to the chart using ActiveX.
0 Kudos
Message 1 of 6
(3,433 Views)
This has proven to be very useful to me. Here is how I would proceed.
 
1. Go into excel and record a macro of exactly what you want to do.
2. Edit the macro so that you can see the code.
3. Duplicate the code in labview using properties and methods.
 
This will get you pointed in the right direction.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 6
(3,423 Views)

Thanks.  I did as you suggested and got hte macro.  Now I can't figure out how to emulate the ActiveChart.SeriesCollection.NewSeries command.

Thanks, Charlie

0 Kudos
Message 3 of 6
(3,410 Views)

Here is some vi's that I forgot that I had for excel. In it is one vi in particular called create chart.vi have alook at it. I'm sending you the whole llb. i have not tested them in LV 8 yet.

hope they help.




Joe.
"NOTHING IS EVER EASY"
Message 4 of 6
(3,399 Views)

Thank you very much for your help.

 

Charlie

0 Kudos
Message 5 of 6
(3,396 Views)
Not a problem glad to be of service.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 6
(3,388 Views)