Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following code demonstrates the usage of Cell.get_characters() and Cell.set_characters() methods using the source excel file which you can download from the provided link. The source excel file has a rich text in the cell A1. It has 3 portions and each portion has a different font. The following code snippet accesses these portions and updates the first portion with a new font name. Finally, it saves the workbook as output excel file. When you will open it, you will find the font of the first portion of the text has changed to “Arial”.
Here is the console output of the above sample code using the source excel file.
Before updating the font settings....
Century
Courier New
Verdana
After updating the font settings....
Arial
Courier New
VerdanaAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.