|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Sub test()
- Dim t As Table
- With ActiveDocument
- If .Paragraphs(1).Range.Information(12) Then .Characters(1).Select: Selection.SplitTable
- For Each t In .Tables
- With t.Range
- With .Rows
- .WrapAroundText = False '取消环绕
- .Alignment = wdAlignRowCenter '居中
- End With
- .Next.InsertBreak Type:=wdPageBreak '插入分页符
- If .Previous(4, 1).Text = vbCr Then .Previous(4, 1).Font.Size = 1
- End With
- Next
- .Content.Find.Execute "(^13)(^12)", , , 1, , , , , , "\2", 2
- End With
- End Sub
复制代码 |
|