Dim myRange As Range
Set myRange = ActiveDocument.Range
myRange.Select
' 设置上下粗边框
With Selection.Borders(wdBorderTop)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth150pt
End With
With Selection.Borders(wdBorderBottom)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth150pt
End With
' 设置中间细虚线
With Selection.Borders(wdBorderLeft)
.LineStyle = wdLineStyleNone
End With
With Selection.Borders(wdBorderRight)
.LineStyle = wdLineStyleNone
End With
With Selection.Borders(wdBorderVertical)
.LineStyle = wdLineStyleDot
.LineWidth = wdLineWidth050pt
End With
End Sub