dim strFilePath as string With CommonDialog1 .DialogTitle = "保存文件" .Filter = "文本文件 (*.txt) ¦*.txt ¦所有文件 ¦*.*" .FilterIndex = 0 .ShowSave strFilePath = .FileName End With
With CommonDialog1 .DialogTitle = "保存文件" .Filter = "EXCEL文件 (*.xls) ¦*.xls" .ShowSave End With if CommonDialog1.FileName <>"" then .SaveGrid CommonDialog1.FileName, flexFileExcel, SaveExcelSettings.flexXLSaveFixedCells