Problem creating a filesystem object

J

John Crawford

I created a presentation 'first slide' that can display shapes
and/or pictures randomly on the screen. It can also show a random
background picture and play either a single wav (song) file or a cd.
The options selected are determined by a control file.
This was created in Office 2000 on a Windows me machine. It worked
for about 2 years without a problem. I have migrated to xp, and now it
does not work. It fails at the line:

Set fs = CreateObject("Scripting.FileSystemObject")

with the message:

"Automation error. The specified module could not be found."

Can anyone give me some direction as to what is causing the problem.

Thanks in advance
John Crawford
 
C

Chirag

Probably, PowerPoint is not able to resolve reference to Microsoft Scripting
Runtime. Check that the reference is still present:
1. In PowerPoint VBA Editor, select "Tools" | "References..." menu item.
2. Ensure that "Microsoft Scripting Runtime" item is checked.

If you don't find "Microsoft Scripting Runtime" item there, do the
following:
1. In the same References dialog box, click "Browse..." button.
2. The "Add Reference" dialog box normally opens in Windows System directory
and that is what we want.
3. Locate and select "scrrun.dll" in Windows System directory.
4. Click Open button after selecting scrrun.dll.
5. Click OK in the "References" dialog box.

See if your code now runs.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 

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