Python openpyxl — Change font to bold

Scriptopia
Mar 9, 2023

Python script that will change font to bold within an existing Excel spreadsheet using the openpyxl library. Openpyxl is a library that allows us to interact with Excel files in Python. It provides a range of tools for reading, writing, manipulating, and formatting Excel data.

See the example below where we set the cell ‘A1’ within our existing spreadsheet to bold font. Be sure to support us by subscribing to our YouTube channel for daily coding content.

https://scriptopia.co.uk/2023/03/09/python-openpyxl-change-font-to-bold/

--

--

Scriptopia

Programming - Projects - Source Code available for everything - Scriptopia.co.uk