Driving Excel itself

xlwings

Reading and writing a live workbook, calling Python from Excel, refreshing pivots.

xlwings connects Python to a live Excel window: read a range into a DataFrame, write results back, and let Excel recalculate on the spot.xlwings connects Python to a live Excel window: read a range into a DataFrame, write results back, and let Excel recalculate on the spot.Python talking to a running ExcelExcel (open)live workbookformulas recalcxlwings.range().options(pd.DataFrame).valuePythonread · computewrite back

Start with the full guides

The long-form treatment of xlwings, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

Compare the options

Which tool or approach to pick, and why.

Follow it through a track

Prefer an ordered route? These tracks cover xlwings along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

xlwings is part of Driving Excel itself.