![]() |
|
#1
|
||||
|
||||
![]() 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.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#2
|
|||
|
|||
![]()
Thanks Gmayor, it works well. But it always gave run-time error '13' : Type mismatch after the macro ends.
When i debug, Set oStory = oShape.TextFrame is highlighted. Not sure what's wrong. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
braddgood | Word VBA | 15 | 10-02-2015 01:54 PM |
![]() |
vibor | Word VBA | 9 | 05-03-2015 05:42 AM |
![]() |
Bathroth | Word VBA | 1 | 10-01-2014 01:40 PM |
Creating VBA Code to Delete Empty Column in Table | Faugs | Word VBA | 5 | 08-07-2014 03:29 PM |
![]() |
ubns | Excel Programming | 2 | 08-14-2012 02:01 AM |