|
批量调整表格宽度, U; ]/ @) ?6 b" K- z+ J
- Sub 调整表格格式()" }$ K" i, [1 m3 f% _
- Dim tb As Table6 y# ` w5 C2 j* } ~$ m
- For Each tb In ThisDocument.Tables()
4 u0 x! r1 A) y. i4 _* e - tb.Select
( h* t/ V) r# z1 G5 C$ B3 b8 b - With Selection.ParagraphFormat2 ~; @# |% b- @) E( d
- '段前间距,单位:磅3 q0 P6 ^& c6 B
- .SpaceBefore = 0
8 p7 S* y6 K# h3 v# E' U% E1 i$ { - .SpaceBeforeAuto = False
1 V# B1 V. a3 O: c W# U - '段后间距,单位:磅0 w$ v! v: O' _( U u; V) z/ `
- .SpaceAfter = 0! B" O; ]2 D( N: [9 a) q b
- .SpaceAfterAuto = False6 | t% [' Z, p) A- _6 d
- '行间距,单倍行距$ e% {" k/ x6 {, U& D J3 V
- .LineSpacingRule = wdLineSpaceSingle
; i4 V2 D( M# v& F# V. c - '左缩进,单位:字符
9 P! o& m( D$ h4 D- s3 w% ^ - .CharacterUnitLeftIndent = 0
! D, N8 d0 K c5 S6 ~; a( `- Z5 b' d - '右缩进,单位:字符5 X7 @& p5 R0 ^! P1 W+ m
- .CharacterUnitRightIndent = 07 F5 d+ _' G$ v Z: A. T
- '首行缩进,单位:字符
8 U$ ?( ]/ s5 `% b - .CharacterUnitFirstLineIndent = 0
) d/ B: O# Q4 }0 I; U% L% X7 ?: s - End With0 E. J3 z* O5 S l* m c: x1 N6 w
- '根据窗口调整表格宽度1 g ~: M; r N) k
- tb.AutoFitBehavior (wdAutoFitWindow)
3 g$ W8 w" G, ] [ - Next
4 B- L; b4 n8 [/ j' B! Z/ X - End Sub& T1 M9 c& @) b2 q
复制代码
8 @0 d; H9 h2 E' N: F
M: Z1 z! Z7 J; {7 V- n |
|