I have a Python script which a few people should be running which uses XLWings to read in live data from a sheet:
book = xw.Book(path + "book_to_read.xlsm")
This works fine on my machine and on some others, but seems to be consistently throwing the same error for most users, "Call was rejected by callee."
I understand that Excel will throw this error if it's being given "too much" to do but that doesn't explain why the bug is only appearing for some people
As far as I can tell everyone is using the same version of Python (3.10), the same version of Excel (2016 64-bit), and has all the relevant dependencies installed. The only difference as far as I can tell is the choice of IDE but I don't see how this could be relevant.
Clearly I'm being stupid and missing something obvious but would appreciate pointers on what might be inconsistent between instances
EDIT: It seems the issue is only occurring for users with multiple Excel books open with a lot of work/macros. Is there a way to work-around this?