Private Sub application_ AdvancedSearchStopped(ByVal SearchObject As Object)
expression 该变量引用一个在类模块中以事件形式声明的 Application 类型对象。
SearchObject 由 AdvancedSearch 方法返回的 Search 对象。
触发该事件后,Search 对象的 Results 集合将不再更新。该事件只能在程序中触发。
以下示例显示被停止的 Search 对象的名称。
Private Sub olApp_AdvancedSearchStopped(ByVal SearchObject As Search)
'Inform the user that the search has stopped.
MsgBox "An AdvancedSearch has been stopped. " & _
"The results that are returned are not necessarily the complete results of the search."
End Sub