Make cell font bold

Description

Sets the font of the cell A2 to bold.

(function()
{
    Api.GetActiveSheet().GetRange("A2").SetBold(true);
})();

Methods used: GetActiveSheet, GetRange, SetBold

Reference Microsoft VBA macro code

Sub example()
    Range("A2").Font.Bold = True
End Sub

Result

Font bold

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).