Home > other >  How to use macros to remove delete Word document form in space empty line empty paragraph
How to use macros to remove delete Word document form in space empty line empty paragraph

Time:09-26

How to use macros to remove delete Word document form in space empty line empty paragraphs (to remove the selected tables, or all of the form)

CodePudding user response:

Dim space as string
For each uTable as Word. Table in oWordDoc. Tables
For each uRow as Word. Row in uTable. Rows
Space="yes"
For each uCell as Word. The Cell in uRow. Cells
If uCell. Reaching. Text. Length & gt; 1 then
Space="no"
End the if
Next
If space=yes then
URow. Delete ()
End the if
Next
next
  • Related