filenames ,是当你选 了多个文件时,返回的所有选中的文件名数组。filename ,是单选一个文时的文件名openfiledialog的Multiselect属性设为true,可多选文件下面的代码,可以显示filenames,多选文件的返回的文件名:Dim i As IntegerOpenFileDialog1.ShowDialog()For i = 0 To UBound(OpenFileDialog1.FileNames)MsgBox(OpenFileDialog1.FileNames(i))Next