RemovePeriods 方法

       

删除指定文本每段末尾的句号。

expression.RemovePeriods

expression  必选。该表达式返回一个 TextRange 对象。

示例

本示例删除活动演示文稿第一张幻灯片第二个形状中每段末尾的句号。

Application.ActivePresentation.Slides(1) _
    .Shapes(2).TextFrame.TextRange _
    .RemovePeriods