![]() |
#6
|
||||
|
||||
![]()
You could use:
Code:
Sub Demo() Application.ScreenUpdating = False Dim Tbl As Table, i As Long For Each Tbl In ActiveDocument.Tables With Tbl.Range For i = .Cells.Count To 1 Step -1 .Cells(i).Range.Select If Len(.Cells(i).Range.Text) = 2 Then .Columns(.Cells(i).ColumnIndex).Delete If i > .Cells.Count Then i = .Cells.Count Next End With Next Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
braddgood | Word VBA | 15 | 10-02-2015 01:54 PM |
![]() |
Rok | Word VBA | 1 | 11-26-2013 01:59 AM |
![]() |
Zimm | Windows | 4 | 11-19-2013 05:07 PM |
Delete lots of empty space between paragraphs. | FieldTechnician | Word | 4 | 10-25-2013 01:14 PM |
![]() |
ubns | Excel Programming | 2 | 08-14-2012 02:01 AM |