PowerShell Excel 2016插入

时间:2016-12-27 20:19:40

标签: excel powershell powershell-v3.0 excel-2016

有人可以告诉我如何使用PowerShell for Excel 2016执行插入吗?

我试过这个:

innerText

1 个答案:

答案 0 :(得分:0)

是的,“插入”究竟是什么意思? :)

如果您想插入行,请创建一个带有“Excel表格”的excel表格(它更容易处理)&按照食谱: https://stackoverflow.com/a/29892939/2672544

为了在表格中只添加一行:

[..]
$ws.Cells.ListObject.ListRows.Add(1)

尝试&玩“标签标签”或更好的Get-Member!