如何在Powershell中Excel表格的合计行上设置总和?

时间:2018-09-20 02:40:19

标签: excel powershell

我正在编写一个脚本来编辑CSV,将所有数据放入三个选项卡,并在每个选项卡上创建一个带有“总计”行的表格。我是PS的新手,但是一切都可以完成并且可以工作,除了我无法对“总计”行执行任何操作外,即我无法选择“总和”或“计数”或该列的总数是什么。

我最后尝试的是:

WARNING: The DOCKER_REGISTRY variable is not set. Defaulting to a blank string.
WARNING: The APPDATA variable is not set. Defaulting to a blank string.
Starting indoortracker_indoortracker.api_1 ... error

ERROR: for indoortracker_indoortracker.api_1  Cannot start service indoortracker.api: b'Mounts denied: 
    The paths /ASP.NET/Https and /Microsoft/UserSecrets\r\nare not shared from OS X and are not known to Docker.
    You can configure shared paths from Docker -> Preferences... -> File Sharing.
    See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

ERROR: for indoortracker.api  Cannot start service indoortracker.api: b'Mounts denied: 
    The paths /ASP.NET/Https and /Microsoft/UserSecrets\r\nare not shared from OS X and are not known to Docker.
    You can configure shared paths from Docker -> Preferences... -> File Sharing.
    See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

ERROR: Encountered errors while bringing up the project.

这给了我

  

方法调用失败,因为[System .__ ComObject]不包含   一种名为“ ListObjects”的方法。

谁能告诉我在哪里可以找到Excel com对象方法的全面参考?

0 个答案:

没有答案