3个回答
展开全部
我可以帮你实现word中所有表格水平居中垂直居中的效果,就用VBA代码来解决。
Su 水平垂直居中()
Dim t As Table
For Each t In Me.Tables
t.Select
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Range.Cells.VerticalAlignment = wdCellAlignVerticalCenter
Next
End Sub
Su 水平垂直居中()
Dim t As Table
For Each t In Me.Tables
t.Select
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Range.Cells.VerticalAlignment = wdCellAlignVerticalCenter
Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询