On 19/08/2010 4:00 AM, Tim Roberts wrote:
@©ħα® wrote:
Workbooks.Open fails randomly throws an exception
...
calling logToXLS() occasionally throws the mentioned error at
xl.Workbooks.Open(filePath)
File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 496, in
__geta
@©ħα® wrote:
> Workbooks.Open fails randomly throws an exception
> ...
> calling logToXLS() occasionally throws the mentioned error at
>
> xl.Workbooks.Open(filePath)
>
> File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
>
> line 496, in
> __getattr__
>raise Attribu
Workbooks.Open fails randomly throws an exception
Code:
def logToXLS(fileNameXLS,worksheetNum,row,col,data):
import win32com.client
fileName=fileNameXLS # Xls File name to be updated
path=os.getcwd()
filePath=os.path.join(os.getcwd(),fileName