PDA

View Full Version : Scripting.FileSystemObject



gopi09_m
05-09-2008, 09:26 PM
Hi,

Recently my computer got formatted.After that all my Macros which involved creating a reference to "Scripting.FileSystemObject" doesnt work.Its throwing an error "ActiveX cannot create the reference".
Can anybody help me on this?
I have the same references that i have before.
Thanks and Regards,
Krrishna

Oorang
05-09-2008, 10:46 PM
Run this command from the windows runbox:

regsvr32 scrrun.dll If you don't get a message say "succeeded" then your dll may be missing or corrupt. If it says "suceeded" try your code again.

Bob Phillips
05-10-2008, 01:36 AM
Sounds definitely like you don't have the dll. If this was done by an IT department, have a word and see if they now have a policy on scripting, many don't allow it.