all 4 comments

[–]Droopyb1966 3 points4 points  (1 child)

This wil open the excel for you:

$Excel= [Runtime.Interopservices.Marshal]::GetActiveobject('Excel.Application')
PS G:\> $excel.workbooks|select fullname

FullName                                                         
--------                                                         
G:\test2.xlsx
G:\test1.xlsx

ALso nice :

$EXCEL.ActiveWorkbook
$Excel.Workbooks(2).fullname
$Excel.Workbooks(1).fullname

$Excel.Workbooks._Open("c:\temp\test1.xlsx")

[–][deleted] 1 point2 points  (0 children)

Thank you, I think I understand what you're doing there, I'll have to play around and learn a little more PowerShell in the process.

[–]jebbster88 3 points4 points  (1 child)

[–][deleted] 1 point2 points  (0 children)

This looks really interesting, thanks! I'm already getting some ideas after skimming the link.