PageRangeSeparator Property

Microsoft Word Visual Basic

PageRangeSeparator Property

       

Returns or sets the characters (up to five) that separate a range of pages in a table of authorities. The default is an en dash. Corresponds to the \g switch for a Table of Authorities (TOA) field. Read/write String.

expression.PageRangeSeparator

expression   Required. An expression that returns a TableOfAuthorities object.

Example

This example formats the first table of authorities in the active document to use a hyphen with a space on either side as the page range separator (for example, "9 - 12").

ActiveDocument.TablesOfAuthorities(1).PageRangeSeparator = " - "