Consulting

Results 1 to 5 of 5

Thread: Multiple file processing

  1. #1
    VBAX Regular
    Joined
    Mar 2005
    Posts
    8
    Location

    Multiple file processing

    Hi all,
    Trying to get this to work...
    http://www.vbaexpress.com/kb/getarticle.php?kb_id=76

    I'm getting this error message.


    I'm lost.
    Can anyone point me in the right direction?

    I'm running Word 2003

  2. #2
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    When you hit DEBUG, what's the line that's highlighted?
    ~Anne Troy

  3. #3
    VBAX Regular
    Joined
    Mar 2005
    Posts
    8
    Location

    Error

    Line 57

    This part is highlighted...

    Set scrFso = CreateObject("scripting.filesystemobject")

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Gilbar,
    I've tried it in 2000 and 2003 without any problems. Could it be anything to do with references? Mine are as below.

  5. #5
    VBAX Tutor
    Joined
    May 2004
    Location
    Germany, Dresden
    Posts
    217
    Location
    Have a look whether you can find "Microsoft Scripting Runtime" (points to System32\scrrun.dll) in your reference.
    Although it does not need to be checked (since the code uses late binding), it must be present on your computer.
    I believe it comes with the Windows Scripting Host, but I'm not sure about that.

Posting Permissions

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