启动Excel时出现错误“使用CLSID检索组件的COM类工厂”

Glo*_*wie 1 excel powershell 64-bit

我在64位计算机上运行PowerShell。线

$excel = New-Object -ComObject Excel.Application
Run Code Online (Sandbox Code Playgroud)

给出错误

$excel = New-Object -ComObject Excel.Application
Run Code Online (Sandbox Code Playgroud)

我研究并试图powershell_ise.exe

C:\Windows\SysWOW64\WindowsPowerShell\v1.0
Run Code Online (Sandbox Code Playgroud)

为解释在这里,但我仍然得到错误。

Dav*_*ant 5

好了,到了:您必须安装Office 64bit。