Hi,
I have a PowerShell script that uses Excel via (New-Object -ComObject Excel.Application).
Sometimes the script is blocked by excel – it is not continuing with the execution of the scripts.
This is very annoying as the script is automatically triggered so I get to know it only after hours.
Unfortunately I don’t see the problem that Excel has then …
Can I get Excel to trough an Exception so that the script can log it, handle the problem and go on?
Last time I realized that the problem was a missing network share … or a missing Excel Cell …
No matter what I simple want excel to stop and don’t block the script execution.
Is there a way?