Forum Discussion

nikki85's avatar
nikki85
Contributor
8 years ago
Solved

how to create com component object

VBscript: set Object=Wscript.CreateObject("Ade.Application.50") Throw error:  object required :"Wscript"   how to create com component  object    thanks
  • HKosova's avatar
    8 years ago

    Use Sys.OleObject:

    set Object = Sys.OleObject("Ade.Application.50")
  • sanjay0288's avatar
    8 years ago

    Hi nikki85,

      Instead of using  WScript.CreateObject modify your script to

     

       set Object = CreateObject ("Ade.Application.50")

     

    Hope this might help.

     

    Regards,

    Sanjay