Mikey Bronowski continues a series on using Powershell to modify Excel files:
In this part, we will work on an existing workbook that already has worksheets. If you want to learn how to add new worksheets using the Add-Worksheet have a look at this blog post.
In case you haven’t noticed in the script above we used -MoveToStart switch, that means all the new worksheets were added at the beginning.
Read on for examples around moving sheets to the front or end, moving sheets before or after other sheets, and changing the colors of different tabs.