Format range as a table

Description

Formats the range of cells A1:D10 as a table.

(function()
{
    Api.GetActiveSheet().FormatAsTable("A1:D10");
})();

Methods used: GetActiveSheet, FormatAsTable

Reference Microsoft VBA macro code

Sub example()
    Sheet1.ListObjects.Add(xlSrcRange, Range("A1:D10"), , xlYes).Name = "myTable1"
End Sub

Result

Range as a table

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