![]() |
|
#2
|
||||
|
||||
|
What you describe could be done with a macro like:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Tbl As Table, i As Long
For Each Tbl In ActiveDocument.Tables
With Tbl
For i = .Columns.Count To 2 Step -1
If Len(.Cell(2, i).Range.Text) = 2 Then .Columns(i).Delete
Next
End With
Next
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to delete all empty rows from all tables
|
braddgood | Word VBA | 15 | 10-02-2015 01:54 PM |
Delete row when 2 column has no value
|
Rok | Word VBA | 1 | 11-26-2013 01:59 AM |
Unable to open or delete an empty folder
|
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 |
Macro to delete rows with all empty cells
|
ubns | Excel Programming | 2 | 08-14-2012 02:01 AM |