摘要: 1,定义网格线种类 $LineStyle = "microsoft.office.interop.excel.xlLineStyle" -as [type] 2,指定网格线种类 $sheet.cells.item(2,3).borders.LineStyle = $LineStyle::xlDash 阅读全文
posted @ 2017-03-14 15:18 追风小伙 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 关于Powershell的Excel操作,首先是基本操作 1,Excel应用定义 $excel = New-Object -ComObject Excel.Application 2, 对话框是否显示 $excel.displayAlerts = $false --不显示 $excel.displa 阅读全文
posted @ 2017-03-14 14:46 追风小伙 阅读(6766) 评论(0) 推荐(0) 编辑