There is no way to separate the custom dictionary from the main dictionary
during spell checks and there is no way to configure spell check to apply
formatting. The best you can achieve would be to create your list as
formatted autocorrect entries or you could create a macro with the terms in
an array to convert them en masse. I can't tell you the limits for an array
such as this, but it worked fine with the content of my personal dictionary
in place of the three
examples. It wouldn't take much effort to convert your dictionary listing to
the same comma delimited format to
try it.
Sub ReplaceList()
Dim vFindText As Variant
Dim vReplText As Variant
Dim i As Long
Selection.HomeKey Unit:=wdStory
vFindText = Array("daisy", "rose", "dandelion")
With Selection.Find
.Forward = True
.Wrap = wdFindContinue
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Format = True
.MatchCase = True
For i = LBound(vFindText) To UBound(vFindText)
.Text = vFindText(i)
.Replacement.Text = "^&"
.Replacement.Font.Italic = True
.Execute replace:=wdReplaceAll
Next i
End With
End Sub
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
I really do. I have a single dictionary for botanical words... the
custom.dic file is separate, if that's what you're thinking of.
JoAnn Paules said:
If you think about what else is in the custom dictionary, you'd
probably realize that you don't really want that feature.
--
JoAnn Paules
MVP Microsoft [Publisher]
I have a custom dictionary for botanical words. However, all
botanical words
in my document should be italicised. Is there a way to tell Word to
autoformat any words found in the custom dictionary?
Thanks in advance.
LesleyW