PDA

View Full Version : Multiple file processing



jperry
03-15-2005, 12:33 PM
Hi all,
Trying to get this to work...
http://www.vbaexpress.com/kb/getarticle.php?kb_id=76 (http://www.vbaexpress.com/kb/getarticle.php?kb_id=76)

I'm getting this error message.
http://www.viamicro.com/error1.JPG

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

I'm running Word 2003

Anne Troy
03-15-2005, 12:49 PM
When you hit DEBUG, what's the line that's highlighted?

jperry
03-15-2005, 12:54 PM
Line 57

This part is highlighted...

Set scrFso = CreateObject("scripting.filesystemobject")

mdmackillop
03-17-2005, 04:47 PM
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.

Steiner
03-17-2005, 11:37 PM
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.