VBA References
Dabid:
Dim myFSO As Scripting.FileSystemObject
Dim myExcel As Excel.Application
External applications require a VBA Reference. Use the Tools|References menu in the VBA Interactive Development Environment (IDE) to pop the References dialog. You'll see a long list of objects that you can choose. The object for the Microsoft Scripting Runtime is scrrun.dll, for example.