Digisoul Posted December 18, 2014 Posted December 18, 2014 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
computergroove Posted December 18, 2014 Posted December 18, 2014 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 Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
Digisoul Posted December 18, 2014 Author Posted December 18, 2014 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
Moderators JLogan3o13 Posted December 19, 2014 Moderators Posted December 19, 2014 (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 December 19, 2014 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!
Digisoul Posted December 20, 2014 Author Posted December 20, 2014 (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 December 20, 2014 by Digisoul 73 108 111 118 101 65 117 116 111 105 116
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now