I\'ve seen from various questions on here that if an instance of Excel is opened from Python using:
xl = win32com.client.gencache.EnsureDispatch(\'Excel.Applicat
I have had much better success using Excel via win32com than any of the other methods, but you might want to look at pyxll (https://www.pyxll.com/introduction.html). Here are a few other things:
addin.Installed == True
? AddIns.Add("c:\windows\addins\TSXL\TSXL.xll").Installed = True
?xl.DisplayAlerts=False
before opening the workbooksHave you tried the four steps in last answer of Automating Excel via COM/Python - standard addins won't load at startup, I copy them here: