How do I import a COM object namespace/enumeration in Python?

前端 未结 4 1170
无人及你
无人及你 2020-12-29 14:07

I\'m relatively new to programming/python, so I\'d appreciate any help I can get. I want to save an excel file as a specific format using Excel through COM. Here is the c

4条回答
  •  梦毁少年i
    2020-12-29 14:53

    As a general rule I find it really useful to pre-record any code in the VBA IDE in Excel. This way you can find out all the values of constants etc that you need to use within your python code. You can also make sure stuff will work from within a more controlled environment.

提交回复
热议问题