I
Ivan Nue
I am executing the following commands from Visual Basic automating
Word to remove the border of the bottom most cell in a table, but only
the bottom border actually gets set to wdLineStyleNone. This same
code, when run from VBA in a macro works. Why could this be
happening?
<at this point the bottom cell is selected>
With oWordApp.Selection.Cells
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
Any insight would be appreciated.
Thanks,
Ivan Nue
Word to remove the border of the bottom most cell in a table, but only
the bottom border actually gets set to wdLineStyleNone. This same
code, when run from VBA in a macro works. Why could this be
happening?
<at this point the bottom cell is selected>
With oWordApp.Selection.Cells
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
Any insight would be appreciated.
Thanks,
Ivan Nue