我应用表格填充(左侧,顶部,右侧,底部)。它会影响Word 2013 VBA中表格的边框。
首先为表格设置边框颜色
表的第二个填充
我的代码
Dim tblBorder As Border
For Each tblBorder In table.Borders
tblBorder.Color = BorderColor
Next tblBorder
With table
.TopPadding = CentimetersToPoints(0.1)
.BottomPadding = CentimetersToPoints(0.1)
.LeftPadding = CentimetersToPoints(0.1)
.RightPadding = CentimetersToPoints(0.1)
End With