Share via


Cell.Select Method

Selects the specified object.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub Select
'Usage
Dim instance As Cell

instance.Select()
void Select()

Remarks

If you try to make a selection that isn't appropriate for the view, your code will fail. For example, you can select a slide in slide sorter view but not in slide view.

Examples

This example selects the first five characters in the title of slide one in the active presentation.

ActivePresentation.Slides(1).Shapes.Title.TextFrame _

    .TextRange.Characters(1, 5).Select

This example selects slide one in the active presentation.

ActivePresentation.Slides(1).Select

This example selects a table that has been added to a new slide in a new presentation. The table has three rows and three columns.

With Presentations.Add.Slides

    .Add(1, ppLayoutBlank).Shapes.AddTable(3, 3).SelectEnd With

See Also

Reference

Cell Interface

Cell Members

Microsoft.Office.Interop.PowerPoint Namespace