<div dir="auto">Hi Tim<div dir="auto"><br></div><div dir="auto">Appreciate the response. Although it has a .P extension it's actually an Excel spreadsheet (xlsx format). Business rules require the name format. I could rename it but I suspect the name isn't the issue since this code works fine on my 2008 laptop with the .P file. I'll try renaming it just to be sure.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto"><br></div><div dir="auto">Doug</div><div dir="auto"><br></div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 4, 2016 12:00 PM, <<a href="mailto:python-win32-request@python.org">python-win32-request@python.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send python-win32 mailing list submissions to<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-win32</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:python-win32-request@python.org">python-win32-request@python.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:python-win32-owner@python.org">python-win32-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of python-win32 digest..."<br>
<br>Today's Topics:<br>
<br>
1. Re: Help with com_error: <a href="tel:%28-2147352567" value="+12147352567">(-2147352567</a>, 'Exception occurred.',<br>
(0, u'Microsoft Excel', u"Microsoft Excel cannot access the file<br>
(Tim Roberts)<br>
<br><br>---------- Forwarded message ----------<br>From: Tim Roberts <<a href="mailto:timr@probo.com">timr@probo.com</a>><br>To: "<a href="mailto:python-win32@python.org">python-win32@python.org</a>" <<a href="mailto:python-win32@python.org">python-win32@python.org</a>><br>Cc: <br>Date: Sun, 4 Dec 2016 00:37:45 -0800<br>Subject: Re: [python-win32] Help with com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file<br>On Dec 2, 2016, at 1:56 PM, Doug Sharkey <<a href="mailto:douglas.sharkey@gmail.com">douglas.sharkey@gmail.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> This bit of code:<br>
><br>
> objExcel = win32com.client.Dispatch("<wbr>Excel.Application")<br>
> objExcel.visible = False<br>
> objExcel.DisplayAlerts = False<br>
> objWb=objExcel.Workbooks.Open(<wbr>filename)<br>
><br>
> is producing this error:<br>
><br>
> File "<COMObject <unknown>>", line 8, in Open<br>
> com_error: <a href="tel:%28-2147352567" value="+12147352567">(-2147352567</a>, 'Exception occurred.', (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file '\\\\Win-rfe2cu0ucdn\\EFT_<wbr>Share\\EFT_ToBeProcessed\\<wbr>ABCD\\MyFile.P'.<br>
<br>
What do you expect Excel to do with a file with the extension .P?<br>
—<br>
Tim Roberts, <a href="mailto:timr@probo.com">timr@probo.com</a><br>
Providenza & Boekelheide, Inc.<br>
<br>
<br>______________________________<wbr>_________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-win32</a><br>
<br></blockquote></div></div>