I need to creat SHELL object from within my VB form.
I use the code:
Dim eShell As Object

Set eShell = CreateObject("Shell.Application")
or
Set eShell = new Shell.Application


Either of these 2 lines generate "Automation Error": The specified module
could not be found. -2147024770

I have Reference to the "Microsoft Shell COntrols and Automation" library.

Any ideas?
Thank You
Mikhail.

Re: VB:: CreateObject("Shell.Application") - error by mayayana

mayayana
Thu Sep 08 19:04:57 CDT 2005

That's a question for a VB group - not the
same as VBScript. Also, there's no reason
you should need to use Shell.Application
from VB. That's a very clunky way to go about
it. If you need to browse for a folder, find
special folder paths, etc., there are simple
APIs for that.

--
mayayanaXX1a@mindXXspring.com
(Remove Xs for return email.)
Mikhail Gryaznov <mikhailg@biopac.com> wrote in message
news:O9hkM1MtFHA.3908@tk2msftngp13.phx.gbl...
> I need to creat SHELL object from within my VB form.
> I use the code:
> Dim eShell As Object
>
> Set eShell = CreateObject("Shell.Application")
> or
> Set eShell = new Shell.Application
>
>
> Either of these 2 lines generate "Automation Error": The specified module
> could not be found. -2147024770
>
> I have Reference to the "Microsoft Shell COntrols and Automation" library.
>
> Any ideas?
> Thank You
> Mikhail.
>
>
>
>



Re: VB:: CreateObject("Shell.Application") - error by Michael

Michael
Thu Sep 08 20:48:57 CDT 2005

Mikhail Gryaznov wrote:
> I need to creat SHELL object from within my VB form.
> I use the code:
> Dim eShell As Object
>
> Set eShell = CreateObject("Shell.Application")
> or
> Set eShell = new Shell.Application
>
>
> Either of these 2 lines generate "Automation Error": The specified
> module could not be found. -2147024770
>
> I have Reference to the "Microsoft Shell COntrols and Automation"
> library.
> Any ideas?


What OS are you running?

What happens if you create/execute the following one line *.vbs script?

Set eShell = CreateObject("Shell.Application")


--
Michael Harris
Microsoft MVP Scripting