I have a few thousand spreadsheets with a logo floating on top.
I am using Microsoft Excel
I need to remove those images. I was wondering if it was possible with PowerShell.
I'm not allowed to install 3rd party apps
So far I have tried
$Excel = New-Object -comObject Excel.Application
$Excel.Visible = $true
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate($Excel)
$wshell.SendKeys('{F5}')
and so on
but that doesn't work
if I can send following keys while my excel is active
- f5
- Alt+s
- Alt+b
- Enter --selects all pictures
- Delete --deletes them
then
$Excel.Save()
Any help is appreciated