Jump to content

MS Word Custom Dictionary


Digisoul
 Share

Recommended Posts

Hello,

I would like to know, how can I add any unknown word into Ms Word 2010's custom dictionary via Word COM Object?

As we can do by selecting "Add to dictionary" option from context menu of Word.

Thanks.

73 108 111 118 101 65 117 116 111 105 116

Link to comment
Share on other sites

If I'm reading this right you need to create a new dictionary and add the dictionary to word. http://msdn.microsoft.com/en-us/library/office/ff836100%28v=office.15%29.aspx

I already know how to add custom dictionary, what I want to know is how to programmatically add my own words to the custom dictionary, so MS Word can ignore them in future.

73 108 111 118 101 65 117 116 111 105 116

Link to comment
Share on other sites

  • Moderators

If you know how to point Word to your own custom dictionary, what are you having problems with?? This works just fine for me in Word 2010 & 2013:

$sDic = @ScriptDir & "\MyCustom.DIC"
FileWriteLine($sDic, "Mayhaptitude ")
Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

 

If you know how to point Word to your own custom dictionary, what are you having problems with?? This works just fine for me in Word 2010 & 2013:

$sDic = @ScriptDir & "\MyCustom.DIC"
FileWriteLine($sDic, "Mayhaptitude ")

I analyzed the built-in custom dictionary, the data was sorted alphabetically. And I want to add words on the fly, so I thought to find any COM method to add the word, didn't find anything on Google, that's why I asked. But Thank you very much for your reply. 

Edited by Digisoul

73 108 111 118 101 65 117 116 111 105 116

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...