Thread: [Solved] Delete Empty Table Rows
View Single Post
 
Old 02-27-2017, 12:04 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The simplest solution is to convert the text box to a frame. If you want to keep the space (and if you did why remove the rows in an unbordered table) set the frame height to exact - otherwise set it to auto so it will shrink (as in the attached). You can then loop through the story ranges and remove the empty rows, modifying your code to process the range rather than the document.
Attached Files
File Type: doc vba test.doc (185.0 KB, 10 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote