EntryOrder Method

The EntryOrder method sets the specified legend entry order position.

Syntax

object.EntryOrder( index )

object.EntryOrder( index, NewIndex )

 

Parameter Type Description
index Short required, legend entry index number
NewIndex Short required, new legend entry index number

 

Example 1

This example shows how to change position of the first legend entry to the third position.

Legend.EntryOrder(1,3)

Example 2

This example shows an alternative method for changing the entry order.

Legend.EntryOrder(1) = 3

Example 3

This example shows how to move the 4th legend entry to the bottom of the legend.

Legend.EntryOrder(4) = Legend.EntryCount

 

Used by: AutoLegend object