Skip to main content

Write data to worksheet cell

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 dataWrite data