![]() |
#4
|
||||
|
||||
![]()
Try:
Code:
Sub CellMerge() Application.ScreenUpdating = False Dim Tbl As Table, Cll As Cell For Each Tbl In ActiveDocument.Tables For Each Cll In Tbl.Range.Cells With Cll If .ColumnIndex < Tbl.Columns.Count Then If .Borders(wdBorderBottom).LineStyle = wdLineStyleNone And _ .Borders(wdBorderTop).LineStyle = wdLineStyleNone Then .Merge MergeTo:=Tbl.Cell(Row:=.RowIndex + 1, Column:=.ColumnIndex) .Merge MergeTo:=Tbl.Cell(Row:=.RowIndex - 1, Column:=.ColumnIndex) End If End If End With Next Next Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
table borders |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tomohawk | Excel | 2 | 02-03-2023 08:24 AM |
![]() |
Eriks | Word | 9 | 04-19-2019 06:18 PM |
![]() |
BartS | Word Tables | 2 | 08-16-2016 04:10 AM |
TOC Formatting Issue | Caroline | Word | 1 | 03-15-2011 01:59 PM |
TOC Formatting Issue | Angstromm | Word | 0 | 09-22-2010 11:49 AM |