+ Reply to Thread
Results 1 to 9 of 9

Can I use CreateObject for Windows Explorer?

  1. #1
    Dave F.
    Guest

    Can I use CreateObject for Windows Explorer?

    Hi
    I'm using VBA

    At the moment to open windows explorer I'm using:

    Shell "c:\winNT\explorer /n,/e,"

    Is there a way to use CreateObject?

    Would that be a better way or is Shell as good as it gets?

    Thanks

    Dave F.



  2. #2
    Bob Phillips
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    Dave,

    I would have thought that the window explorer does not support automation,
    so CreateObject is not an option.

    --
    HTH

    Bob Phillips

    "Dave F." <df@bh.cv.fg> wrote in message
    news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > Hi
    > I'm using VBA
    >
    > At the moment to open windows explorer I'm using:
    >
    > Shell "c:\winNT\explorer /n,/e,"
    >
    > Is there a way to use CreateObject?
    >
    > Would that be a better way or is Shell as good as it gets?
    >
    > Thanks
    >
    > Dave F.
    >
    >




  3. #3
    AA2e72E
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    You can create aninstance of Internet Explorer as follows:

    set ie= CreateObject("InternetExplorer.Application")

    It has te following methods :

    ExecWB, Navigate2, QueryStatusWB,ShowBrowserBar

    and the following properties:

    AddressBar,Offline, ReadyState,RegisterAsBrowser,RegisterAsDropTarget,
    Resizable,Silent,TheaterMode

    There are no events.


    "Bob Phillips" wrote:

    > Dave,
    >
    > I would have thought that the window explorer does not support automation,
    > so CreateObject is not an option.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "Dave F." <df@bh.cv.fg> wrote in message
    > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > Hi
    > > I'm using VBA
    > >
    > > At the moment to open windows explorer I'm using:
    > >
    > > Shell "c:\winNT\explorer /n,/e,"
    > >
    > > Is there a way to use CreateObject?
    > >
    > > Would that be a better way or is Shell as good as it gets?
    > >
    > > Thanks
    > >
    > > Dave F.
    > >
    > >

    >
    >
    >


  4. #4
    Dave F.
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    Thanks for replying

    What programs do support automation?
    Is it only those that have VBA built into them?

    or are there other ways to interact with them?

    Cheers
    Dave F.

    "Bob Phillips" <phillips@tiscali.co.uk> wrote in message
    news:e69ABIVVFHA.4056@TK2MSFTNGP15.phx.gbl...
    > Dave,
    >
    > I would have thought that the window explorer does not support automation,
    > so CreateObject is not an option.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "Dave F." <df@bh.cv.fg> wrote in message
    > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > Hi
    > > I'm using VBA
    > >
    > > At the moment to open windows explorer I'm using:
    > >
    > > Shell "c:\winNT\explorer /n,/e,"
    > >
    > > Is there a way to use CreateObject?
    > >
    > > Would that be a better way or is Shell as good as it gets?
    > >
    > > Thanks
    > >
    > > Dave F.
    > >
    > >

    >
    >




  5. #5
    Tom Ogilvy
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    The OP asked about windows explorer and you responded with information on
    Internet Explorer - were you suggesting Internet Explore as an
    alternative/replacement for windows explorer?

    --
    Regards,
    Tom Ogilvy

    "AA2e72E" <AA2e72E@discussions.microsoft.com> wrote in message
    news:32D8AC30-0D00-43F8-86DC-AF1BF55EE7F7@microsoft.com...
    > You can create aninstance of Internet Explorer as follows:
    >
    > set ie= CreateObject("InternetExplorer.Application")
    >
    > It has te following methods :
    >
    > ExecWB, Navigate2, QueryStatusWB,ShowBrowserBar
    >
    > and the following properties:
    >
    > AddressBar,Offline, ReadyState,RegisterAsBrowser,RegisterAsDropTarget,
    > Resizable,Silent,TheaterMode
    >
    > There are no events.
    >
    >
    > "Bob Phillips" wrote:
    >
    > > Dave,
    > >
    > > I would have thought that the window explorer does not support

    automation,
    > > so CreateObject is not an option.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "Dave F." <df@bh.cv.fg> wrote in message
    > > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > > Hi
    > > > I'm using VBA
    > > >
    > > > At the moment to open windows explorer I'm using:
    > > >
    > > > Shell "c:\winNT\explorer /n,/e,"
    > > >
    > > > Is there a way to use CreateObject?
    > > >
    > > > Would that be a better way or is Shell as good as it gets?
    > > >
    > > > Thanks
    > > >
    > > > Dave F.
    > > >
    > > >

    > >
    > >
    > >




  6. #6
    Dave F.
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    Cheers

    Unfortunately I want to work with Windows Explorer not Internet Explorer.

    Dave F.


    "AA2e72E" <AA2e72E@discussions.microsoft.com> wrote in message
    news:32D8AC30-0D00-43F8-86DC-AF1BF55EE7F7@microsoft.com...
    > You can create aninstance of Internet Explorer as follows:
    >
    > set ie= CreateObject("InternetExplorer.Application")
    >
    > It has te following methods :
    >
    > ExecWB, Navigate2, QueryStatusWB,ShowBrowserBar
    >
    > and the following properties:
    >
    > AddressBar,Offline, ReadyState,RegisterAsBrowser,RegisterAsDropTarget,
    > Resizable,Silent,TheaterMode
    >
    > There are no events.
    >
    >
    > "Bob Phillips" wrote:
    >
    > > Dave,
    > >
    > > I would have thought that the window explorer does not support

    automation,
    > > so CreateObject is not an option.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "Dave F." <df@bh.cv.fg> wrote in message
    > > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > > Hi
    > > > I'm using VBA
    > > >
    > > > At the moment to open windows explorer I'm using:
    > > >
    > > > Shell "c:\winNT\explorer /n,/e,"
    > > >
    > > > Is there a way to use CreateObject?
    > > >
    > > > Would that be a better way or is Shell as good as it gets?
    > > >
    > > > Thanks
    > > >
    > > > Dave F.
    > > >
    > > >

    > >
    > >
    > >




  7. #7
    AA2e72E
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    As an alternative, perhaps:

    ie.visible = true
    ie.Navigate2 "c:\"


    "Tom Ogilvy" wrote:

    > The OP asked about windows explorer and you responded with information on
    > Internet Explorer - were you suggesting Internet Explore as an
    > alternative/replacement for windows explorer?
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "AA2e72E" <AA2e72E@discussions.microsoft.com> wrote in message
    > news:32D8AC30-0D00-43F8-86DC-AF1BF55EE7F7@microsoft.com...
    > > You can create aninstance of Internet Explorer as follows:
    > >
    > > set ie= CreateObject("InternetExplorer.Application")
    > >
    > > It has te following methods :
    > >
    > > ExecWB, Navigate2, QueryStatusWB,ShowBrowserBar
    > >
    > > and the following properties:
    > >
    > > AddressBar,Offline, ReadyState,RegisterAsBrowser,RegisterAsDropTarget,
    > > Resizable,Silent,TheaterMode
    > >
    > > There are no events.
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > Dave,
    > > >
    > > > I would have thought that the window explorer does not support

    > automation,
    > > > so CreateObject is not an option.
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > "Dave F." <df@bh.cv.fg> wrote in message
    > > > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > > > Hi
    > > > > I'm using VBA
    > > > >
    > > > > At the moment to open windows explorer I'm using:
    > > > >
    > > > > Shell "c:\winNT\explorer /n,/e,"
    > > > >
    > > > > Is there a way to use CreateObject?
    > > > >
    > > > > Would that be a better way or is Shell as good as it gets?
    > > > >
    > > > > Thanks
    > > > >
    > > > > Dave F.
    > > > >
    > > > >
    > > >
    > > >
    > > >

    >
    >
    >


  8. #8
    AA2e72E
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    Alternatively, try:

    Sub aa()
    Set xx = CreateObject("WScript.Shell")
    xx.Exec "EXPLORER.EXE c:\ajay"
    Set xx = Nothing
    End Sub


    "Dave F." wrote:

    > Thanks for replying
    >
    > What programs do support automation?
    > Is it only those that have VBA built into them?
    >
    > or are there other ways to interact with them?
    >
    > Cheers
    > Dave F.
    >
    > "Bob Phillips" <phillips@tiscali.co.uk> wrote in message
    > news:e69ABIVVFHA.4056@TK2MSFTNGP15.phx.gbl...
    > > Dave,
    > >
    > > I would have thought that the window explorer does not support automation,
    > > so CreateObject is not an option.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "Dave F." <df@bh.cv.fg> wrote in message
    > > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > > Hi
    > > > I'm using VBA
    > > >
    > > > At the moment to open windows explorer I'm using:
    > > >
    > > > Shell "c:\winNT\explorer /n,/e,"
    > > >
    > > > Is there a way to use CreateObject?
    > > >
    > > > Would that be a better way or is Shell as good as it gets?
    > > >
    > > > Thanks
    > > >
    > > > Dave F.
    > > >
    > > >

    > >
    > >

    >
    >
    >


  9. #9
    Dave F.
    Guest

    Re: Can I use CreateObject for Windows Explorer?

    Thanks for replying,

    Correct me if I'm wrong, but isn't that the same as (or v. similar to)
    doing:

    Shell "c:\winNT\explorer /n,/e, c:\ajay"

    Dave F.

    "AA2e72E" <AA2e72E@discussions.microsoft.com> wrote in message
    news:8F24A331-50A6-40A8-BEDA-2C6888F7B4D5@microsoft.com...
    > Alternatively, try:
    >
    > Sub aa()
    > Set xx = CreateObject("WScript.Shell")
    > xx.Exec "EXPLORER.EXE c:\ajay"
    > Set xx = Nothing
    > End Sub
    >
    >
    > "Dave F." wrote:
    >
    > > Thanks for replying
    > >
    > > What programs do support automation?
    > > Is it only those that have VBA built into them?
    > >
    > > or are there other ways to interact with them?
    > >
    > > Cheers
    > > Dave F.
    > >
    > > "Bob Phillips" <phillips@tiscali.co.uk> wrote in message
    > > news:e69ABIVVFHA.4056@TK2MSFTNGP15.phx.gbl...
    > > > Dave,
    > > >
    > > > I would have thought that the window explorer does not support

    automation,
    > > > so CreateObject is not an option.
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > "Dave F." <df@bh.cv.fg> wrote in message
    > > > news:OeSi1nUVFHA.2540@tk2msftngp13.phx.gbl...
    > > > > Hi
    > > > > I'm using VBA
    > > > >
    > > > > At the moment to open windows explorer I'm using:
    > > > >
    > > > > Shell "c:\winNT\explorer /n,/e,"
    > > > >
    > > > > Is there a way to use CreateObject?
    > > > >
    > > > > Would that be a better way or is Shell as good as it gets?
    > > > >
    > > > > Thanks
    > > > >
    > > > > Dave F.
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1