完美解决!感谢老大和鑫兄。 经鑫兄同意,将鑫兄写的代码公开共享: Application.ScreenUpdating = False Dim q, w, b As Shape, er As CanvasShapes Set q = Selection.ShapeRange(1) ' we = q.Type With ActiveDocument.Shapes If q.Type = msoGroup Then q.Select Selection.ShapeRange.LockAspectRatio = msoTrue Selection.ShapeRange.ScaleHeight 1.2, False ' Selection.ShapeRange.ScaleWidth 1.2, False ' For w = 1 To q.GroupItems.Count Set b = q.GroupItems(w) If b.Type = msoTextBox Then b.TextFrame.TextRange.Font.Size = 1.2 * b.TextFrame.TextRange.Font.Size b.TextFrame.TextRange.ParagraphFormat.LineSpacingRule = wdLineSpaceAtLeast b.TextFrame.TextRange.ParagraphFormat.LineSpacing = 8 '本处可根据情况作调整 End If Next End If End With Application.ScreenUpdating = True End Sub
[此贴子已经被作者于2006-7-13 12:31:44编辑过] |