B
billbell52
Using Word2003
I have a problem with Word leaving a gap in a double line border
around a cell in a table (bottom right corner). This happens from VBA
and the gui.
Construct a table with 1 column and a few rows.
Select the top row (which is one cell)
From GUI add a double line border with 3/4 pt
Or you can run the following macro when you have the cell selected.
You will see a gap in the bottom right hand corner on the outside
line. Any ideas on how to get rid of it?
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 10/15/2009 by bill
'
With Selection.Cells
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderTop)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderBottom)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
With Options
.DefaultBorderLineStyle = wdLineStyleDouble
.DefaultBorderLineWidth = wdLineWidth075pt
.DefaultBorderColor = 10849427
End With
End Sub
I have a problem with Word leaving a gap in a double line border
around a cell in a table (bottom right corner). This happens from VBA
and the gui.
Construct a table with 1 column and a few rows.
Select the top row (which is one cell)
From GUI add a double line border with 3/4 pt
Or you can run the following macro when you have the cell selected.
You will see a gap in the bottom right hand corner on the outside
line. Any ideas on how to get rid of it?
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 10/15/2009 by bill
'
With Selection.Cells
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderTop)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
With .Borders(wdBorderBottom)
.LineStyle = wdLineStyleDouble
.LineWidth = wdLineWidth075pt
.Color = 10849427
End With
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
With Options
.DefaultBorderLineStyle = wdLineStyleDouble
.DefaultBorderLineWidth = wdLineWidth075pt
.DefaultBorderColor = 10849427
End With
End Sub