Re: [python-win32] pywin can not access excel file

2021-12-12 Thread Tim Roberts
On 12/12/21 12:32 AM, Tamara Abugharbieh wrote: We are using winpy32 to automate excel applications using python. The python script will be used by users with no administrator privileges, and in this case, we are getting the following error: pywintypes.com_error: (-2147352567, 'Exception occu

Re: [python-win32] pywin can not access excel file

2021-12-12 Thread Steven Manross
P.S. I also just validated that a non-admin could run the code in ipython with a test xlsx, and open the workbook, navigate to a worksheet, and then read a value in A1 that I put the words "this is a test" in. * Is User Account Control (UAC) enabled on the PC we are troubleshooting with?

Re: [python-win32] pywin can not access excel file

2021-12-12 Thread Steven Manross
Is this a typo on the email or is your production code really referencing filename and fileName? You need to reference the variable name using the same casing in both places (if this is not a typo in your email example). P.S. I don't think you need the 4 backslashes.. 2 usually does the trick,

[python-win32] pywin can not access excel file

2021-12-12 Thread Tamara Abugharbieh
Hi, We are using winpy32 to automate excel applications using python. The python script will be used by users with no administrator privileges, and in this case, we are getting the following error: pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Excel', \"Microsoft Exc