I have excel cells that contain strings. I would like to format (e.g. bold) only part of the string using Office Scripts.
For example, a cell of which the content is like this:
Cell content
I want to change its format to this:
Cell content
Copilot gave the following answer but it won’t work because setBold
only accepts one argument.
cellRange.getFormat().getFont().setBold(true, { start: 0, end: 3 })
New contributor
Anthony Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.