Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell: Excel is blocking execution – how to get an error/exception?

$
0
0

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?



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>