python - win32com.client: AttributeError ...
https://stackoverflow.com/questions/2496944426.07.2014 · The constants are available only if static dispatching is available. The requires either using EnsureDispatch (instead of Dispatch) or generating the type library via makepy.py or genclient (which EnsureDispatch does for you). So I would try using the EnsureDispatch.Note: it is in win32com.client.gencache:. xl = win32com.client.gencache.EnsureDispatch …