![]() |
|
|
Thread Tools | Display Modes |
#5
|
||||
|
||||
![]()
All you would need to do is change:
Sub DeleteEmptyRows() in the link to: Sub DeleteEmptyRows(TargetDoc As Document) and, in the same sub, change: ActiveDocument.Tables to: TargetDoc.Tables You can delete both 'Application.ScreenUpdating' rows from the 'DeleteEmptyRows' sub, too. Then, after the line: Set TargetDoc = ActiveDocument in your existing sub, insert: Call DeleteEmptyRows(TargetDoc)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
WJSwanepoel | Word Tables | 4 | 02-02-2021 10:33 PM |
![]() |
Naveen Dhanaraj | Word Tables | 10 | 03-06-2020 03:23 AM |
![]() |
FuriousD | Word VBA | 1 | 05-12-2019 04:06 AM |
![]() |
aaghd72 | Word VBA | 8 | 02-18-2019 11:22 AM |
![]() |
beginner | Excel Programming | 5 | 12-26-2014 12:29 AM |