+ Reply to Thread
Results 1 to 3 of 3

Need VBA assistance for Excel Open Dialogue Box

  1. #1
    Brent E
    Guest

    Need VBA assistance for Excel Open Dialogue Box

    Good morning.

    I need to figure out code that will simply change current directory to a set
    directory and then show Excel's "Open" Diaglogue box. I am aware that I can
    use an open command to open a certain file, but I don't want to do that,
    just Excel's Open dialogue box. Any suggestions? Thanks

    Cordially,


  2. #2
    Tom Ogilvy
    Guest

    Re: Need VBA assistance for Excel Open Dialogue Box

    sPath = "C:\MyFolder"
    chdrive sPath
    chdir sPath
    application.Dialogs(xlDialogOpen).Show


    also look in excel vba help at Application.GetOpenfileName

    --
    Regards,
    Tom Ogilvy



    "Brent E" <[email protected]> wrote in message
    news:[email protected]...
    > Good morning.
    >
    > I need to figure out code that will simply change current directory to a

    set
    > directory and then show Excel's "Open" Diaglogue box. I am aware that I

    can
    > use an open command to open a certain file, but I don't want to do that,
    > just Excel's Open dialogue box. Any suggestions? Thanks
    >
    > Cordially,
    >




  3. #3
    Brent E
    Guest

    Re: Need VBA assistance for Excel Open Dialogue Box

    Really cool. Thanks Tom.

    "Tom Ogilvy" wrote:

    > sPath = "C:\MyFolder"
    > chdrive sPath
    > chdir sPath
    > application.Dialogs(xlDialogOpen).Show
    >
    >
    > also look in excel vba help at Application.GetOpenfileName
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    >
    > "Brent E" <[email protected]> wrote in message
    > news:[email protected]...
    > > Good morning.
    > >
    > > I need to figure out code that will simply change current directory to a

    > set
    > > directory and then show Excel's "Open" Diaglogue box. I am aware that I

    > can
    > > use an open command to open a certain file, but I don't want to do that,
    > > just Excel's Open dialogue box. Any suggestions? Thanks
    > >
    > > Cordially,
    > >

    >
    >
    >


+ 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