Write data to worksheet cell

Description

Writes the data (the Hello world phrase) to the worksheet third column of the fourth row.

(function()
{
  Api.GetActiveSheet().GetRange("C4").SetValue("Hello world");
})();

Methods used: GetActiveSheet, GetRange, SetValue

Reference Microsoft VBA macro code

Sub example()
    Cells(3, 4)="Hello world"
End Sub

Result

Write data

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).