G
Gil
I'd like to protect a patient's name from the spell checker. Patient's
name varies from document to document with each patient having a
personal single document file. Each patient's name appears multiple
times in the document.
Adding an ever-increasing number of patients' names to the custom
dictionary in an ongoing constantly updating fashion is unreasonable.
Is there a reasonable way to preclude spell checker from identifying
their names as misspellings? Perhaps I could automate copying the
patient's name into one of the document properties and any item in that
location would be protected from spell check? Using fields and/or
sections protected from spell check seems fraught with multiple
difficulties for many MS Word users.
Alternatively, an automated addition of patient's name to the custom
dictionary might work. … perhaps something like the following to add to
"myNames.dic" where code has previously selected the patient's name.
Dim tempNam as string
tempNam = Selection.Text
Set myNames.doc =_
Application.CustomDictionaries.ActiveCustomDictionary
Dim d 'Create a variable
Set d = CreateObject(Scripting.Dictionary)
' Object.Add Key, Item
d.Add "a", "Athens" 'Add some keys and items
d.Add "b", "Belgrade"
d.Add "c", "Cairo"
d.Add tempnam
or maybe something simpler?
"spell check but not check variable"
tia,
Gil
http://www.TenSecondMedicalRecord.com
name varies from document to document with each patient having a
personal single document file. Each patient's name appears multiple
times in the document.
Adding an ever-increasing number of patients' names to the custom
dictionary in an ongoing constantly updating fashion is unreasonable.
Is there a reasonable way to preclude spell checker from identifying
their names as misspellings? Perhaps I could automate copying the
patient's name into one of the document properties and any item in that
location would be protected from spell check? Using fields and/or
sections protected from spell check seems fraught with multiple
difficulties for many MS Word users.
Alternatively, an automated addition of patient's name to the custom
dictionary might work. … perhaps something like the following to add to
"myNames.dic" where code has previously selected the patient's name.
Dim tempNam as string
tempNam = Selection.Text
Set myNames.doc =_
Application.CustomDictionaries.ActiveCustomDictionary
Dim d 'Create a variable
Set d = CreateObject(Scripting.Dictionary)
' Object.Add Key, Item
d.Add "a", "Athens" 'Add some keys and items
d.Add "b", "Belgrade"
d.Add "c", "Cairo"
d.Add tempnam
or maybe something simpler?
"spell check but not check variable"
tia,
Gil
http://www.TenSecondMedicalRecord.com