Field.Result property (Publisher)

Returns a String that represents the result of the specified field. Read-only.

Syntax

expression.Result

expression A variable that represents a Field object.

Return value

String

Example

This example applies bold formatting to the first field in the selection. This example assumes that either text or a shape with text is selected in the active publication.

Sub GetFieldResults() 
 If Selection.TextRange.Fields.Count > 0 Then 
 MsgBox "The result of the first field is " & _ 
 Selection.TextRange.Fields(1).Result & "." 
 End If 
End Sub

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.