ListValue Property

Applies To

ListFormat object.

Description

Returns the numeric value of the first paragraph in the range for the specified ListFormat object. For example, the ListValue property applied to the second paragraph in an alphabetic list would return 2. Read-only Long.

Remarks

Use the ListString property to return a string that represents the appearance of the list value.

If the ListFormat object is in a bulleted list, ListValue returns 1.

If the ListFormat object is in an outline-numbered list, ListValue returns the numeric value of the first paragraph as it occurs in the sequence of paragraphs at the same level. For example, the ListValue property applied to a paragraph numbered "A.2" would return 2.

This property will not return the value for a LISTNUM field.

See Also

ListString property.

Example

This example displays both the numeric value of the first paragraph in the selection and the string representation of that value.

v = Selection.Range.ListFormat.ListValue
lstring = Selection.Range.ListFormat.ListString
MsgBox "List value " & v & " is represented by the string " & lstring