Error when Creating Scripting.FileSystemObject in Word 2007

S

SettledDown

I have one machine in an office running Vista Home Premium 64-bit/SP 2 with
Office Enterprise 2007 installed. If I create a new document with a simple
macro using the following line
Set fso = CreateObject("Scripting.FileSystemObject")
I get a "File name or class name not found during Automation operation."
error. If I use the same statement in a VBS script file it works correctly,
no error. Also, when looking at the VBA reference library in Word, the path
for scrrun.dll (scripting runtime) changes, sometimes to user\documents,
other times to user\desktop and sometimes to random folders on the c: drive.
We have tried re-registering scrrun.dll and vbscript.dll. This does not help.
Does anyone have any ideas? Thanks.
 

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