本示例实现的功能是:设定 Kingsoft WPS 根据指定的每行字符数,自动调整所选段落的右缩进。

With Selection.ParagraphFormat
    .AutoAdjustRightIndent = True
End With