Shapes.AddTable (PowerPoint)

Adds a table shape to a slide.

AddTable (NumRows, NumColumns, Left, Top, Width, Height)


Dim lngNumRows As Long: lngNumRows = 
Dim lngNumColumns As Long: lngNumColumns = 
Dim shpAddTable As Shape
Set shpAddTable = ActiveWindow.Selection.SlideRange(1).Shapes.AddTable(NumRows:=lngNumRows, NumColumns:=lngNumColumns)

Arguments

The following arguments are required:

NumRows (Long) - The number of rows in the table.

NumColumns (Long) - The number of columns in the table.

Optional arguments

The following arguments are optional

Left (Single) - The distance (in points) from the left edge of the slide to the left edge of the table.

Top (Single) - The distance (in points) from the top edge of the slide to the top edge of the table.

Width (Single) - The width (in points) of the new table.

Height (Single) - The height (in points) of the new table.