Bob,

As a matter of fact I don't set the variable. I understand its defined as part of the Extensibility resource. What would the variable definition look like?

Bare in mind that this is a code snippet of a project that imports vb modules from my backup folder / library.

Until I did a new windows install everything worked fine. I've checked and the Extensibility 5.3 and Scripting Runtime resources are installed (though I'm thinking they may not be working).

Thanks in advance for your kind help.