1.1 Selection对象的Find对象 '* +++++++++++++++++++++++++++++ '* Created By SHOUROU@ExcelHome 2008-1-28 6:25:33 '仅测试于System: Windows NT Word: 11.0 Language: 2052 '№ 0316^The Code CopyIn [ThisDocument-ThisDocument]^' '* ----------------------------- Sub Get_Finds1() ' 用时:3.826172 , 3.826172,3.59375 Dim N As Long, StartTime As Single, EndTime As Single StartTime = VBA.Timer Selection.HomeKey wdStory Do With Selection.Find .Text = "敏捷" .Wrap = wdFindStop .Forward = True If .Execute = False Then Exit Do N = N + 1 End With Loop EndTime = VBA.Timer Debug.Print EndTime - StartTime MsgBox "Word共用时" & EndTime - StartTime & "找到了" & N & "项目!", vbInformation End Sub '---------------------- |