Next Property

Microsoft Publisher Visual Basic

object that represents the next field in a text range.

expression.Next

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example bolds the field next to the first field in the specified text range. This assumes that there are at least two fields in the specified text range.

Sub GoToNextField()
    ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange _
        .Fields(1).Next.TextRange.Font.Bold = msoTrue
End Sub