Looking at a most useful looking KB article (here), the first line of the code states:
[VBA]''MUST set reference to Windows Script Host Object Model in the project using this code!
[/VBA]
I have no doubt that this is true, because the first declaration,
[VBA]Dim objFSO As FileSystemObject[/VBA]
chokes for me when I copy the parts of the code I want to use into my project -- says that the User-defined type is not defined. However, I'm utterly at a loss as to HOW to set reference to Windows Script Host Object Model in my project so that things such as FileSystemObject and Folder are valid types which I can use to declare variables.
Help!
Thanks,
G.T.