Results 1 to 3 of 3

Thread: FileOpen

  1. #1
    jzfitzge
    Guest

    FileOpen

    In Word 2000 I am trying to return the file names when a user selects multiple files in the fileopen dialog box.

    The following code snipet works when a single file is selected.

    Dim sFileName As String
    Dim dlgFileOpen As Dialog

    Set dlgFileOpen = Dialogs(wdDialogFileOpen)

    dlgFileOpen.Show
    sFileName = dlgFileOpen.Name

    When multiple files are selected it errors on the dlgFileOpen.show line.

    Any suggestions would be most helpfull.

  2. #2
    kelliel
    Guest

    Re: FileOpen

    In Word 97, you couldn't open multiple files from a macro. I have no idea whether this was fixed for Word 2000, however.

  3. #3
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: FileOpen

    John,

    I haven't checked, but I think you can get a multi-select File Open dialog in VB6.

    Another less seamless alternative would be to collect the filenames in a given directory and display them to the user in a listbox with multiselect property.

    Gary

Posting Permissions

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