|
本帖最后由 duquancai 于 2016-11-25 00:17 编辑
- Sub shishi()
- With ActiveDocument.Content
- With .ParagraphFormat
- .LeftIndent = 0: .RightIndent = 0: .FirstLineIndent = 0
- End With
- .Collapse 1: .Expand 4: .Font.Name = "宋体": .Font.Size = 14
- .Move 4, 2: .MoveEnd 4, 3: .Font.Name = "黑体": .Font.Size = 22: .ParagraphFormat.Alignment = 1
- .Move 4, 2: .Expand 4: .Font.Name = "仿宋": .Font.Size = 16
- .Move 4, 1: .MoveEnd 4, ActiveDocument.Content.Paragraphs.Count - 9
- .Font.Name = "仿宋": .Font.Size = 16: .ParagraphFormat.FirstLineIndent = 32
- .Move 4, 1: .Expand 4: t1 = Len(.Text): .Move 4, 1: .Expand 4: t2 = Len(.Text)
- .MoveStart 4, -1: .ParagraphFormat.Alignment = 2: .MoveEnd 4, -1
- .ParagraphFormat.RightIndent = CentimetersToPoints(((t2 - t1) / 2 * 16) / 28.35)
- End With
- End Sub
复制代码 |
|