![]() |
|
#6
|
||||
|
||||
|
It is difficult to understand why the built-in command (CTRL+H) is not working but check the shortcut key assignments - http://www.gmayor.com/installing_macro.htm
If you record the macro, it should give you: Code:
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "*"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to search for specific words in a document
|
mike0215 | Word VBA | 2 | 11-28-2017 07:25 AM |
| Writing a Macro which will search for the content of a cell rather than it's value | Sears36 | Excel Programming | 1 | 05-11-2017 07:55 AM |
| Macro on Search and Replace | davidhuy | Word VBA | 1 | 12-19-2014 04:47 AM |
Macro help - search for value, paste a value in another column
|
IRollman | Excel Programming | 1 | 01-14-2014 01:05 PM |
Word Macro to search all tables
|
silverspr | Word VBA | 3 | 04-02-2011 11:20 PM |