本示例实现的功能是:设定 Kingsoft WPS 在已指定每页行数的情况下,将选定段落中的字符与行网格对齐。

With Selection.ParagraphFormat
    .DisableLineHeightGrid = True
End With