每当我尝试在 vb 中保存 excel 时,我都会遇到此错误。请有人帮助我这段代码有什么问题:
xlWorkBook = xlApp.Workbooks.Add
xlWorkSheet = xlWorkBook.Sheets("Sheet1")
xlWorkBook.SaveAs(Filename:="C:\Users\PB\Documents\thesis\bookrecord", FileFormat:="xlCSV")
xlApp.Visible = True
保存语句从 HRESULT 获取错误异常:0x800A03EC