Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macros

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: September 02, 2024
Also available as a single HTML file

Onetastic Macro Documentation > Page Objects > Cell

Cell Object

Description

Represents a cell of a table in a OneNote page.

Hierarchical Structure

Cell objects can be found under following objects: Row

Cell objects can contain following objects: Paragraph Table

Creating Cell Objects

Cell objects can be inserted directly under following objects: Row

Remarks

Insert Table object under Cell object to create nested tables. Insert Paragraph object under Cell object to add text into the cell.

Properties

Name Type Access Description
author String read-write The original author of this Cell.
authorInitials String read-write The initials of the original author of this Cell.
backgroundColor Color read-write The background color for this Cell. This property requires OneNote 2013 or above.
colIndex Numeric read-only The number of Columns before the column this Cell is in.
creationTime DateTime read-write The date and time this Cell is originally created.
lastModifiedBy String read-write The person who last modified this Cell.
lastModifiedByInitials String read-write The initials of the person who last modified this Cell.
lastModifiedTime DateTime read-write The date and time of the last modification to this Cell.
objectId String read-write The unique identifier of this Cell.
paragraphs Array<Paragraph> read-only The list of Paragraphs in this Cell.
rowIndex Numeric read-only The number of Rows before the row this Cell is in.
selection Selection read-write Whether this Cell is fully or partially selected or not.
text String read-write The text of this Cell.
text_numeric Numeric read-write The text of this Cell interpreted as a numerical value. Useful to apply arithmetic operations on it.
type ObjectType read-only Type of this object. Always has the value of "Cell".

Reference

Statements

Hierarchy Objects

Page Objects

Other Objects

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

Special Functions

String Functions

Window Functions