Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel chart (change to line graph?) 1

Status
Not open for further replies.

Smithsco

Technical User
Mar 30, 2003
89
AU
How do I change from a bar graph to line graph using VBscript?

here is part of the code I have for the chart.

MyExcelChart.Charts.Add
MyExcelChart.activechart.HasTitle = True
MyExcelChart.activechart.ChartTitle.Text = "Visitors log for each week shown in browsers percentage"
MyExcelChart.activechart.SetSourceData MyExcelChart.Sheets("Sheet1").Range("A1:k5"),1


 
I've found a few examples but they appear to be for VBP not VBS Has anyone tried to create an line chart in Excel?
 
[tt]MyExcelChart.activechart.ChartType = 4[/tt]

other values you can try:

xl3DLine = -4101
xlLine = 4
xlLineMarkers = 65
xlLineMarkersStacked = 66
xlLineMarkersStacked100 = 67
xlLineStacked = 63
xlLineStacked100 = 64
xlXYScatterLines = 74
xlXYScatterLinesNoMarkers = 75
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top