You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to call an external macro in a workbook which requires the workbook as a parameter although I get the following error:
"TypeError: Objects of type 'Book' can not be converted to a COM VARIANT (but obtaining the buffer() of this object could)"
Here is the code:
import xlwings as xw
...
wb = xw.Book(FILEPATH)
macro1 = wb.app.macro("libraryfunctions.xlam!Function1")
macro1(wb)
The text was updated successfully, but these errors were encountered:
I am trying to call an external macro in a workbook which requires the workbook as a parameter although I get the following error:
"TypeError: Objects of type 'Book' can not be converted to a COM VARIANT (but obtaining the buffer() of this object could)"
Here is the code:
import xlwings as xw
...
wb = xw.Book(FILEPATH)
macro1 = wb.app.macro("libraryfunctions.xlam!Function1")
macro1(wb)
The text was updated successfully, but these errors were encountered: