Set Fso = CreateObject("Scripting.FileSystemObject")
Set Fd = Application.FileDialog(msoFileDialogFilePicker)
Fd.Title = "Please select a file"
Select Case Fd.Show
Case 0
MsgBox ("You have not select a file")
add_file = False
Exit Function
UserForm.Show
Case -1
Fld = Fd.SelectedItems(1)
add_file = True
End Select
Workbook.Open Filename:=Fld, ReadOnly:=True
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/) |