如何用VBA新建一个新的excel表并将其保存在指定目录下
发布网友
发布时间:2022-04-22 06:36
我来回答
共3个回答
热心网友
时间:2024-02-10 00:27
Sub 新建()
Workbooks.Add
ActiveWorkbook.SaveAs "C:\test.xls", True
MsgBox "新建Excel工作薄完成"
End Sub
热心网友
时间:2024-02-10 00:27
Sub 宏1()
Workbooks.Add
ActiveWorkbook.SaveAs Filename:="C:\test.xlsx", FileFormat:=xlOpenXMLWorkbook
ActiveWindow.Close
End Sub
热心网友
时间:2024-02-10 00:28
Sub 宏1()
Workbooks.Add
ActiveWorkbook.SaveAs Filename:="C:\test.xlsx", FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
End Sub