【发布时间】:2011-04-07 07:27:31
【问题描述】:
我们如何提取范围内通配符搜索的查找结果?
dim r as range
set r = activedocument.range
Do While r.Find.Execute(findtext:="<*>", MatchWildcards:=True) = True
Msgbox <Show the matching word it found here>
if **<the word it matched>** = "Stop" then do something here
Loop
上面的代码通过使用 作为通配符模式,使用 range 来查找范围内的任何整个单词。但是我怎样才能得到它找到的当前匹配/单词呢?
【问题讨论】: