|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
word原生没这功能,只能代码:
- Sub fff()
- Application.ScreenUpdating = False
- ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
- For Each f In Array("风光", "真优美")
- With Selection.Find
- Selection.HomeKey wdStory
- Do While .Execute(f, , , , , , , , , f)
- Selection.Editors.Add wdEditorEveryone
- Selection.Collapse wdCollapseEnd
- Loop
- End With
- Next
- ActiveDocument.SelectAllEditableRanges wdEditorEveryone
- ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
- Application.ScreenUpdating = True
- End Sub
复制代码 效果:
|
|