![]() |
#1
|
|||
|
|||
![]()
Need help creating word table in vba in attached format.
so far I have this code: Sub ChangeTableBorders(oWordTable As Word.table) With oWordTable .Spacing = 9 .Borders.InsideColor = wdColorBlue .Borders.InsideLineStyle = wdLineStyleDashSmallGap .Borders.OutsideColor = wdColorBlue .Borders.OutsideLineStyle = wdLineStyleDashSmallGap End With End Sub Sub ChangeTableRowBorder(oWordTableRow As Word.Row) With oWordTableRow .Shading.BackgroundPatternColor = wdColorAutomatic .Borders(wdBorderBottom).Color = wdColorBlack .Borders(wdBorderBottom).LineStyle = wdLineStyleSingle .Borders(wdBorderBottom).LineWidth = wdLineWidth050pt End With End Sub I could not create that horizontal line due to spacing. Any help would be highly appreciated! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Cray_Z | Word VBA | 7 | 01-05-2021 09:32 PM |
![]() |
MathiasFC | Word VBA | 11 | 01-14-2019 04:50 PM |
![]() |
Bob123456789 | Excel Programming | 13 | 03-14-2017 01:25 PM |
Word Macro to delete table row and table header | NorthSuffolk | Word VBA | 6 | 10-11-2016 05:04 AM |
![]() |
gsj224 | Word VBA | 3 | 07-31-2011 09:26 AM |