Dim xlapp As New Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.WorkSheet
Dim xlaaa As String
xlaaa = xlapp.GetSaveAsFilename("c:\aaaa", fileFilter:="(*.xls),*.xls") '但是没有保存
MsgBox "Save as " & xlaaa
xlapp.Visible = True
Set xlBook = xlapp.Workbooks.Add
xlapp.SaveWorkspace xlaaa
xlBook.Close
Set xlBook = Nothing
xlapp.Workbooks.Open xlaaa