This documentation is archived and is not being maintained.

Position Property

Office 2003

Returns or sets the position of the object.


expression    Required. An expression that returns one of the objects in the Applies To list.


This example puts the legend for the specified chart to the left of the plot area.

Sub AddLegend()

   Dim chConstants

   Set chConstants = ChartSpace1.Constants

   ' Enbable the legend for the first chart in Chartspace1.
   ChartSpace1.Charts(0).HasLegend = True

   ' Set the position of the legend.
   ChartSpace1.Charts(0).Legend.Position = chConstants.chLegendPositionLeft

End Sub