ActiveDocument.BeginCommandGroup "aa" '开始记录操作
Application.Optimization = True '阻止界面刷新
Dim OrigSelection As ShapeRange, sh As Shape, cs As New ShapeRange
Set OrigSelection = ActiveSelectionRange
Set cs = OrigSelection.Shapes.FindShapes("", cdrCurveShape)
OrigSelection.ApplyNoFill'不填充颜色
'cs.ApplyUniformFill CreateCMYKColor(0, 100, 100, 0)
For Each sh In cs
sh.Outline.Color = CreateCMYKColor(65, 69, 0, 0)'更改颜色
Next
OrigSelection.ApplyUniformFill CreateCMYKColor(65, 69, 0, 0)'填充颜色
ActiveDocument.EndCommandGroup '结束记录操作
Application.Optimization = False '恢复界面刷新
ActiveWindow.Refresh '刷新当前界面