Powershell interact with open Excel
        Posted  
        
            by HKK
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by HKK
        
        
        
        Published on 2010-05-12T14:08:53Z
        Indexed on 
            2010/05/13
            4:34 UTC
        
        
        Read the original article
        Hit count: 272
        
powershell
|excel
To interact with excel in Powershell it is common to start a new excel as follows:
$x = New-Object -comobject Excel.Application
Instead of that I have an open Excel process already. (I get it as follows)
$excelprocess = Get-Process | Where-Object {$_.name -eq "excel"} | Sort-Object -Property "Starttime" -descending | Select-Object -First 1
Is there a way to interact with this specific excel process over PS?
© Stack Overflow or respective owner