当我创建一个工作簿时,它通常被命名为“Book 1”。我想将其更改为“我的工作簿”之类的内容,而无需保存文件。这可能吗?这是我用来创建这本书的代码。
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"