Skip to content

ppt table add

zmworm edited this page Apr 9, 2026 · 52 revisions

PowerPoint: Table - Add

Create tables with rows and cells on a slide.

Path: /slide[N] (parent)

Table Properties

Property Default Description
rows 3 Number of rows
cols 3 Number of columns
name Table {N} Table name
x, y defaults Position (EMU or units)
width, height defaults Size (EMU or units)

Row Properties

Add rows to an existing table.

Path: /slide[N]/table[M] (parent)

Property Default Description
cols from grid Cell count
height from first row Row height
c1, c2, c3, ... (empty) Cell text values

Examples

# Create a table
officecli add slides.pptx /slide[1] --type table --prop rows=4 --prop cols=3 --prop x=2cm --prop y=5cm --prop width=20cm --prop height=10cm

# Add a row with values
officecli add slides.pptx /slide[1]/table[1] --type row --prop c1="Product" --prop c2="Revenue" --prop c3="Growth"

# Add a row with specific height
officecli add slides.pptx /slide[1]/table[1] --type row --prop c1="Widget A" --prop c2="$1.2M" --prop c3="+15%" --prop height=1cm

Based on OfficeCLI v1.0.40

Clone this wiki locally