![]() |
#1
|
|||
|
|||
![]()
Hello. I have a similar problem to https://www.msofficeforums.com/word-...row-table.html. However, I do not need to merge specific rows. I am hoping, as this thread suggested, to merge each cell, row by row, regardless of how many columns, or how many tables. The current macro posted—which was very helpful—only merges a single table with those specific parameters. What I am hoping for is a similar macro that will loop through the entire document and any time it finds a table with multiple columns, it will combine it to a single column, while keeping each row intact. Thank you for your help in advance!
|
#2
|
||||
|
||||
![]()
Try:
Code:
Sub MergeAllTableRows() Dim Tbl As Table, TblRw As Row For Each Tbl In ActiveDocument.Tables For Each TblRw In Tbl.Rows TblRw.Range.Cells.Merge Next Next End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]() Quote:
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
flackend | Mail Merge | 4 | 12-01-2023 02:49 PM |
![]() |
blar | Mail Merge | 1 | 10-19-2015 03:04 PM |
![]() |
kathriiin | Mail Merge | 3 | 03-30-2015 07:06 AM |
![]() |
Joey Cheung | Word Tables | 1 | 08-12-2014 05:15 PM |
![]() |
dennist77 | Word | 1 | 10-29-2013 11:39 PM |