日期:2014-05-20  浏览次数:20998 次

如何设置创建的word表格的框的粗细,谢谢?
如题

------解决方案--------------------
用宏记录一下操作就可以看到VBA的代码了.

With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth600pt
.DefaultBorderColor = wdColorAutomatic
End With

------解决方案--------------------
你要设置的是表格对象中的单元格的边框的宽度的属性。
tbl.??? 应该是:
tbl.Cell.Borders(wdBorderBottom).LineWidth = Word.WdLineWidth.wdLineWidth150pt;

tbl.Cell.Borders.LineWidth = Word.WdLineWidth.wdLineWidth150pt;