Results 1 to 3 of 3
2001-04-23, 16:01 #1jzfitzgeGuest
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)
sFileName = dlgFileOpen.Name
When multiple files are selected it errors on the dlgFileOpen.show line.
Any suggestions would be most helpfull.
2001-04-23, 16:13 #2kellielGuest
In Word 97, you couldn't open multiple files from a macro. I have no idea whether this was fixed for Word 2000, however.
2001-04-24, 02:16 #3
- Join Date
- Dec 2000
- New York, NY
- Thanked 29 Times in 27 Posts
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.