title: Macro is not picking up hyphens within text
body: <p>Having a bit of an error with a macro that was working earlier today. We have a macro that searches a word document for certain words, and changes the font type when it detects them. For some reason, we added a new word/phrase, that contains a hyphen, for example this-word. There is no space either side of the hyphen, and I can't work out why it wont detect. Below is an example of the code.</p>
  
  <pre><code>       With Selection.Find
          .Text = "hyphenated-word"
          .Replacement.Text = ""
          .Replacement.Font.Name = "Whitney Bold"
          .Forward = True
          .Wrap = wdFindContinue
          .MatchWholeWord = True
     End With
     Selection.Find.Execute Replace:=wdReplaceAll
  </code></pre>
  
  <p>For all intents and purposes, the code itself works with other words, such as "your" etc, but with this it doesn't. Is there a rule im missing?</p>