DrGreg1408
Technical User
Hello everyone,
A lot of my work involves switching back and forth between English and Spanish while working in Microsoft Word. I wrote a macro that changes all the styles in the document to the Language of my choice and also changes the Active Custom Dictionary accordingly. This saves me a lot of mouse work.
I have one issue I have not been able to work out. I want to reference the path location where Word stores my custom dictionaries EVEN WHEN I DON'T HAVE A CURRENTLY ACTIVE DICTIONARY.
If I have an active dictionary, it's no problem. I just use the following:
[Application].[CustomDictionaries].[ActiveCustomDictionary].Path
However, this info request returns Run-time error 5825 "Object has been deleted" if I don't have a currently active custom dictionary.
Does anyone know how to reference that location, even when there is no currently active custom dictionary?
The following does not work:
[Options].DefaultFilePath(wdProofingToolsPath)
That returns the following path:
c:\program files\common files\microsoft shared\proof
which is NOT where Word saves my custom dictionaries.
They are saved at:
c:\users\greg\appdata\roaming\microsoft\proof
Any ideas about how to reference that location programmatically?
gsw
A lot of my work involves switching back and forth between English and Spanish while working in Microsoft Word. I wrote a macro that changes all the styles in the document to the Language of my choice and also changes the Active Custom Dictionary accordingly. This saves me a lot of mouse work.
I have one issue I have not been able to work out. I want to reference the path location where Word stores my custom dictionaries EVEN WHEN I DON'T HAVE A CURRENTLY ACTIVE DICTIONARY.
If I have an active dictionary, it's no problem. I just use the following:
[Application].[CustomDictionaries].[ActiveCustomDictionary].Path
However, this info request returns Run-time error 5825 "Object has been deleted" if I don't have a currently active custom dictionary.
Does anyone know how to reference that location, even when there is no currently active custom dictionary?
The following does not work:
[Options].DefaultFilePath(wdProofingToolsPath)
That returns the following path:
c:\program files\common files\microsoft shared\proof
which is NOT where Word saves my custom dictionaries.
They are saved at:
c:\users\greg\appdata\roaming\microsoft\proof
Any ideas about how to reference that location programmatically?
gsw