Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 1.57 KB

PowerPoint.Table.Cell.md

File metadata and controls

71 lines (42 loc) · 1.57 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Table.Cell method (PowerPoint)
vbapp10.chm622005
vbapp10.chm622005
PowerPoint.Table.Cell
31a2908b-7a33-994d-860a-e01da62729e7
06/08/2017
medium

Table.Cell method (PowerPoint)

Returns a Cell object that represents a cell in a table.

Syntax

expression. Cell( _Row_, _Column_ )

expression A variable that represents a Table object.

Parameters

Name Required/Optional Data type Description
Row Required Long The number of the row in the table to return. Can be an integer between 1 and the number of rows in the table.
Column Required Long The number of the column in the table to return. Can be an integer between 1 and the number of columns in the table.

Return value

Cell

Example

This example creates a 3x3 table on a new slide in a new presentation and inserts text into the first cell of the table.

With Presentations.Add 
    With .Slides.AddSlide(1, ppLayoutBlank) 
        .Shapes.AddTable(3, 3).Select 
        .Shapes(1).Table.Cell(1, 1).Shape.TextFrame _ 
            .TextRange.Text = "Cell 1" 
    End With 
End With

This example sets the thickness of the bottom border of the cell in row 2, column 1 to two points.

ActivePresentation.Slides(2).Shapes(5).Table _ 
    .Cell(2, 1).Borders(ppBorderBottom).Weight = 2

See also

Table Object

[!includeSupport and feedback]