Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Sub Find_Highlight_Height()
  2. Application.ScreenUpdating = False
  3. Options.DefaultHighlightColorIndex = wdYellow
  4. 'Options.DefaultHighlightColorIndex = wdRed
  5. With ActiveDocument.Content.Find
  6. .ClearFormatting
  7. ' .Text = "Height {1,}-[!0]{1,}*mm"
  8. .Text = "Height {1,}-[!0]*(mm)>"
  9. With .Replacement
  10. .Text = "^&"
  11. .ClearFormatting
  12. .Highlight = True
  13. End With
  14. .Forward = True
  15. .Wrap = wdFindContinue
  16. .Format = True
  17. .MatchWildcards = True
  18. .Execute Replace:=wdReplaceAll
  19. End With
  20. Application.ScreenUpdating = True
  21. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement