I hav refenced all the necessary com components and I have created an object of MSScriptControl.ScriptControlClass type and am now trying to set the setting of the object. Whenever I try to input this piece of code then the code fails and breaks here : AddObject("LoadLog", L, True). I have taken this piece of code straight from the microsoft website.