FindReplace.Execute method (Publisher)
Performs the specified find or replace operation.
Syntax
expression.Execute
expression A variable that represents a FindReplace object.
Return value
Boolean
Example
This example executes a find and replace operation on the active document.
Sub ExecuteFindReplace()
Dim objFindReplace As FindReplace
Set objFindReplace = ActiveDocument.Find
With objFindReplace
.Clear
.FindText = "library"
.Execute
End With
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.