Marker Property

Microsoft Office Web Components Visual Basic

expression.Marker

expression    Required. An expression that returns a ChSeries object.

Example

This example sets the chart type and then sets the marker type and interior color for the specified series.

Sub SetMarkerStyle()
   Dim chConstants
   Dim serSeries1

   Set chConstants = ChartSpace1.Constants

   Set serSeries1 = ChartSpace1.Charts(0).SeriesCollection(0)

   ChartSpace1.Charts(0).Type = chConstants.chChartTypeLineMarkers

   serSeries1.Marker.Style = chConstants.chMarkerStyleSquare

   serSeries1.Interior.Color = "blue"
End Sub