Characters.FieldCode property (Visio)

Returns the field code for a field represented by an object. Read-only.

Syntax

expression.FieldCode

expression A variable that represents a Characters object.

Return value

Integer

Remarks

If the Characters object does not contain a field or contains non-field characters, the FieldCode property returns an exception. Check the IsField property of the Characters object before getting its FieldCode property.

Field codes correspond to the fields in the Field list in the Field dialog box (click Field on the Insert tab).

Constants for field codes are declared by the Microsoft Visio type library in VisFieldCodes.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.