Adding words to MS word

  • Thread starter Thread starter Gerry Viator
  • Start date Start date
G

Gerry Viator

Hi all,

I want to add about 500 words to words(MS Word 2002, 2003) dictionary, with
a easy script or program using vb.net.
The words will be a list in a text file or Delimited file.
can someone please tell me how to do this or links? Should I add them to the
current dictionary or create a new
dictionary?

thanks
Gerry
 
Hi Gerry,

I am researching the issue, I will get back here and post more information
ASAP.

Have a nice day!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Gerry,

Based on my researching, I can not find a public document that tells us to
add word into the words dictionary. But I have made a test that we can use
the FSO object to add words into the customized dictionary. This is a
workaround, and the method is not supported.

For performance concern, I suggest you read out the words in the dictionary
first and insert your own words into them according to the alphabetic order.

Here I write some code you may have a try.

Dim sUser
Dim oFSO
Dim oFile
Dim oStream
sUser = "ryanrogers"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.GetFile("C:\Documents and Settings\" & sUser &
"\Application
Data\Microsoft\Proof\CUSTOM.DIC")
Set oStream = oFile.OpenAsTextStream(8)
oStream.WriteLine ("NewStuff")
Set oStream = oFile.OpenAsTextStream(1)
Dim sBuffer
sBuffer = oStream.ReadAll
MsgBox sBuffer

If you still have any concern, please feel free to post here.



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top