Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted (edited)

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!

Posted (edited)

 

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

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
×
×
  • Create New...