![]() |
#2
|
|||
|
|||
![]()
If the table is a single column table as your example indicates then something like this:
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oCell As Cell With ActiveDocument.Tables(1) Set oCell = .Cell(1, 1) Do If oCell.RowIndex = .Rows.Count Then Exit Do Do While Len(oCell.Range.Text) = 2 And Len(oCell.Next.Range.Text) = 2 If oCell.RowIndex = .Rows.Count Then Exit Do oCell.Merge oCell.Next Loop If oCell.RowIndex = .Rows.Count Then Exit Do Set oCell = oCell.Next Loop End With lbl_Exit: Exit Sub End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Alfred | Mail Merge | 2 | 05-23-2017 10:59 PM |
In Excel 2007-After Selecting Visibe Cells-How do I "Copy to Visible cells" Only | mag | Excel | 0 | 10-28-2012 08:04 PM |
'Linking' entered information to other "cells" from an original "cell" in MS Word | Wade | Word | 6 | 09-03-2012 05:22 PM |
![]() |
Jamal NUMAN | Word | 3 | 07-27-2011 04:19 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |