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.
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
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,
|
|||
|