Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
workbook.caller with file on a sharepoint server #215
I can't succeed in using xlwings with an excel workbook on sharepoint (ie not checked out locally).
I see the file on the ROT with a fullname = "https://sharepoint_path/workbook.xlsm"
Calling Workbook(fullname) leads to the stack trace:
An additional potential issue is with blank space in the name ==> fullname has it as " " but name in ROT is with a "%20".
Googling the stack trace led me to https://bitbucket.org/cherrypy/cherrypy/issues/194/error-using-win32comclientgetobject-with mentioning some CoInitialise call (and other but very old posts from 2001)
A solution would be to bypass GetObject (ie if the latter throws an exception) and get the object directly from the ROT by comparing the name in the ROT to the the fullname (module some encoding/decoding of the strings re %20 and other discrepancies). Would this work ?
referenced this issue
Aug 22, 2015
The bug is perhaps deeper as a GetObject in vba from excel also fails if I
On Saturday, August 22, 2015, Felix Zumstein firstname.lastname@example.org