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.


expression. Forward

expression A variable that represents a FindReplace object.

Return Value



Forward must be set to True when replacing text.


This example replaces all occurrences of the word "This" in the selection with "That" in each open publication.

Dim objDocument As Document 
For Each objDocument In Documents 
 With objDocument.Find 
 .MatchCase = True 
 .FindText = "This" 
 .ReplaceWithText = "That" 
 .ReplaceScope = pbReplaceScopeAll 
 .Forward = True 
 End With 
Next objDocument