Column。 Select 方法 (PowerPoint)Column.Select method (PowerPoint)

选择指定的对象。Selects the specified object.

语法Syntax

表达式选择expression.Select

_表达式_一个代表Column对象的变量。expression A variable that represents a Column object.

说明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.

示例Example

本示例选择活动演示文稿中第一张幻灯片标题的前五个字符。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).Select

End With

另请参阅See also

列对象Column Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.