I keep getting errors where xlCategory, xlValue and xlPrimary are not recognised in my python script.
I am trying to label th
The main reason for this attribute error is because your COM-server has shifted from late-binding (dynamic) to early binding (static).
There are two ways to fix this issue:
Use the dynamic module to force your code to work in a late-bound oriented way. Example use:
"win32com.client.dynamic.Dispatch()" instead of "win32com.client.Dispatch()"
Use camelcase sensitive keywords for the early bound oriented way. Example use:
"excel.Visible()" instead of "excel.VISIBLE()" or "excel.visible()"
If you want to use variables without case sensitive issues, you should delete the gen_py folder and use win32com.client.Dispatch()