ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   putting graph as Line (https://www.excelbanter.com/excel-programming/327549-putting-graph-line.html)

shah firdaous via OfficeKB.com

putting graph as Line
 
Hi, I have export the data to excel from Vb, then add the graph in excel
and set my secondary axis as..
..SeriesCollection(4).AxisGroup = xlSecondary
then how we set this group only as chatrtype as xlLine

--
Message posted via http://www.officekb.com

David

putting graph as Line
 
Hi,
I think this will do it, but you ned to select the chart first.

ActiveChart.ChartType = xlLineMarkers

Thanks,

"shah firdaous via OfficeKB.com" wrote:

Hi, I have export the data to excel from Vb, then add the graph in excel
and set my secondary axis as..
..SeriesCollection(4).AxisGroup = xlSecondary
then how we set this group only as chatrtype as xlLine

--
Message posted via http://www.officekb.com


Tushar Mehta

putting graph as Line
 
Loop through every series in the chart's seriescollection and check the
axisgroup. If it is xlsecondary, set the series charttype to line.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi, I have export the data to excel from Vb, then add the graph in excel
and set my secondary axis as..
.SeriesCollection(4).AxisGroup = xlSecondary
then how we set this group only as chatrtype as xlLine




All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com