Word & Windows Scripting Host

J

Joe Paris

I use a small JavaScript script (see below) that allows me to use Word to
spell check text I post on the net. I recently installed Office 2003 on my
Windows XP SP1 box and now when I try to use the spell check script I get
the following error: "ClassFactory cannot supply requested class" with code
80040111. The offending line of code is the first in the snippet below. I
would appreciate any help anyone could give me on this.

oWord= new ActiveXObject("Word.Application"); // error happens here
oWord.Visible= true;
oWord.Documents.Add();
oWord.Selection.Paste();
oWord.ActiveDocument.CheckSpelling();
oWord.Selection.WholeStory();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top