Consulting

Results 1 to 3 of 3

Thread: Scripting.FileSystemObject

  1. #1
    VBAX Regular
    Joined
    Apr 2008
    Posts
    51
    Location

    Scripting.FileSystemObject

    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
    Last edited by gopi09_m; 05-09-2008 at 09:58 PM.

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    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.
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    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.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •