Table of contents
TOC
折叠目录
展开目录

FindReplace.Execute 方法 (发布服务器)FindReplace.Execute Method (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

执行指定的查找或替换操作。Performs the specified Find or Replace operation.

语法Syntax

表达式执行expression. Execute

_expression_A 表示FindReplace对象的变量。_expression_A variable that represents a FindReplace object.

返回值Return Value

BooleanBoolean

示例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
© 2018 Microsoft