FindReplace.Forward property (Publisher)
Sets or retrieves a Boolean representing the direction of the text search. True if the find operation searches forward through the document. False if it searches backward through the document. Read/write.
Syntax
expression.Forward
expression A variable that represents a FindReplace object.
Return value
Boolean
Remarks
Forward must be set to True when replacing text.
Example
This example replaces all occurrences of the word This in the selection with the word That in each open publication.
Dim objDocument As Document
For Each objDocument In Documents
With objDocument.Find
.Clear
.MatchCase = True
.FindText = "This"
.ReplaceWithText = "That"
.ReplaceScope = pbReplaceScopeAll
.Forward = True
.Execute
End With
Next objDocument
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for