Home Dashboard Directory Help
Search

Working with Excel in Powershell triggers Outlook to open by JesseG7134


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 841516
Opened: 3/26/2014 8:49:29 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

For example, the following code triggers the Outlook Startup Wizard to appear:
$excel = New-Object -ComObject excel.application
$workbook = $excel.workbooks.Open("C:\Users\example\Documents\someexcelfile.xls")
$worksheets = $workbook.Worksheets
$worksheets[0]

Also, please note the following links which report the same problem:
http://stackoverflow.com/questions/19703380/powershell-com-object-excel-opens-outlook
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/5ec05dd7-983a-4457-88fa-09c2ea42701a/adding-a-workbook-to-excel-with-powershell-is-trying-to-open-outlook?forum=ITCG
Details
Sign in to post a comment.
Sign in to post a workaround.