![]() |
|
#1
|
|||
|
|||
![]() Here is another way. An empty cell has a text length = 2. A row marker has a text length = 2. So an empty row with three cells has a text length = 8. Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Do If Len(Selection.Tables(1).Rows.Last.Range.Text) = 8 Then Selection.Tables(1).Rows.Last.Delete Else Exit Do End If Loop End Sub |
![]() |
Tags |
empty cell delete row |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
braddgood | Word VBA | 15 | 10-02-2015 01:54 PM |
![]() |
Linh | Word Tables | 1 | 09-21-2014 01:52 PM |
Creating VBA Code to Delete Empty Column in Table | Faugs | Word VBA | 5 | 08-07-2014 03:29 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 |