0

我想在没有安装 excel 的 sharepoint 中打开并保存一个 excel 文件。我试图编写一个 vbscript,但我只能找到名为 excel 的应用程序。请帮忙指教。谢谢!

Set objExcel = CreateObject("Excel.Application")

Set objWorkbook = objExcel.Workbooks.Open("D:\Roambi\Test excel\Test.xlsx")

objExcel.ActiveWorkbook.Save

objExcel.ActiveWorkbook.Close

objExcel.Application.Quit

WScript.Quit
4

1 回答 1

0

I am not sure about the reason of the issue, but if you need open and modify some content - maybe Open XML SDK could help. However if you need to open to run some script inside that file - you'll need to have installed Excel application

于 2013-11-14T08:29:47.107 回答