+ Reply to Thread
Results 1 to 3 of 3

Need VBA code for "Open Dialogue" box

  1. #1
    Brent E
    Guest

    Need VBA code for "Open Dialogue" box

    Good morning.

    I am using an Access VBA module to control Excel and I need to figure out
    code that can 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. I want dialogue box and
    not specify a file. Any suggestions? Thanks

    Cordially,

  2. #2
    Guest

    Need VBA code for "Open Dialogue" box

    hi,
    i think it is:
    Application.Dialogs(xlDialogOpen).Show

    >-----Original Message-----
    >Good morning.
    >
    >I am using an Access VBA module to control Excel and I

    need to figure out
    >code that can 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. I

    want dialogue box and
    >not specify a file. Any suggestions? Thanks
    >
    >Cordially,
    >.
    >


  3. #3
    Mark
    Guest

    re: Need VBA code for "Open Dialogue" box

    Hi,

    chDir "c:\Here\Mummy"

    application.dialogs("Open").show
    workbooks.open Filename

    Filename is the filename

    Something like this. You have to specify the filename
    property then

    If you are game, you can steal my code from one of my
    utilities: EasyText_Rev1.xls

    at:
    http://www.geocities.com/excelmarksway

    The code is not password protected but you will have to
    modify it to suit your needs.


    - mark









    >-----Original Message-----
    >Good morning.
    >
    >I am using an Access VBA module to control Excel and I

    need to figure out
    >code that can 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. I

    want dialogue box and
    >not specify a file. 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