Hi,
I think the error is showing up because the application registry might
be empty and does not have any "application level objects" defined in
the system.
Please try installing the complete version of MS Office. It should fix
your problem.
Also, Jitender I think we can use Set keyword with the initialization
of application level object. Only thing We CANNOT DECLARE AND
INITIALIZE AT THE SAME TIME.
For Ex:
Dim MyObj=CreateObject("Excel.Application") --> This is NOT CORRECT
Dim MyObj
Set MyObj = CreateObject("Excel.Application") . THIS IS THE CORRECT
WAY.
Hope this helps.
Thanks
Kishore