Search code examples
pythonexcelpython-2.7xlwings

Does xlwings support "Wrap Text" property?


Can I control the "Wrap Text" property of a cell using Python+xlwings?


Solution

  • It's currently not implemented but I've opened a feature request here. In the meantime, you can always work around by accessing the underlying COM object on Windows: mysheet.range('A1').api.WrapText = True or appscript object on Mac: mysheet.range('A1').api.wrap_text.set(True).