Add PowerShell script action before Excel operations:
Get-Process excel -ErrorAction SilentlyContinue | Stop-Process -Force
# Set Excel to run in compatibility mode
$excel = New-Object -ComObject Excel.Application
$excel.Visible = $false
$excel.DisplayAlerts = $false
$excel.ScreenUpdating = $false
$excel.Quit()
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($excel)
If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
Regards,
Riyaz
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2