Dim dlg As New SaveFileDialog '定义一个新的SaveFileDialogdlg.Filter= "Excel文件|*.xls" '设置筛选器If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮 Book.Save(dlg.FileName) Dim Proc As New Process Proc.File = dlg.FileName Proc.Start()End If