I have a powershell script that opens an excel file, re-assigns a blank password, and then saves the file. I want to add a task to the script to remove the first 4 rows of the excel file before saving it.
相关问题
- How to Debug/Register a Permanent WMI Event Which
- How can I do variable substitution in a here-strin
- Excel sunburst chart: Some labels missing
- How to use a default value with parameter sets in
- Does powershell have a method_missing()?
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- C#调用PowerShell的问题
- EscapeDataString having differing behaviour betwee
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- How to add rows in middle of a table with jQuery?
- Unregister a XLL in Excel (VBA)
- PowerShell Change owner of files and folders
You can't use OleDB for deleting data from Excel document. As per MSDN docmentation:
What you can do is use Exel's COM interface to delete rows. Remember to release COM object too. Like so,