ChartCharacters Object

Word Developer Reference

Represents characters in an object that contains text.

Version Information
 Version Added:  Word 2007

Remarks

The ChartCharacters object lets you modify any sequence of characters contained in the full text string.

Use Characters(

Start

,

Length

), where

Start

is the start character number and

Length

is the number of characters, to return a ChartCharacters object.

Example

The Characters property is necessary only when you need to change some of an object’s text without affecting the rest (you cannot use the Characters property to format a portion of the text if the object does not support rich text). To change all the text at the same time, you can usually apply the appropriate method or property directly to the object. The following example formats the contents of the chart title for the first chart in the active document as italic.

Visual Basic for Applications
  With ActiveDocument.InlineShapes(1).Chart
    .ChartTitle.Characters.Font.Italic = True
End With

See Also