0
當我創建工作簿時,通常將其命名爲「書1」。我想將其更改爲「我的工作簿」之類的內容,而不必保存文件。這可能嗎?這是我用來創建這本書的代碼。VB.net更改Excel工作簿名稱
Dim ExcelApplication As Excel.Application = New Excel.Application
Dim ExcelWorkbook As Excel.Workbook = ExcelApplication.Workbooks.Add
這將是很好,如果這個工作:
Dim ExcelWorkbook as Excel.Workbook = _
ExcelApplication.Workbooks.Add(Name = "My Workbook")
或
ExcelWorkbook.Name = "My Workbook"