Completely different approach here! The FIND approach won't work as searching for text highlighting will NOT find table cells that are shaded (two completely different things).
Top part is the same, but bottom part is different; actually pretty simple. Use the 'For Each' loops to go thru all the tables, and then same approach to go thru all the cells in the given table. Check for desired shading in any cell, if found, then delete that cell's row. This assumes you are using the BackgroundPattern color not the ForegroundPattern color. If wrong, then change or add 'OR' statement if you might also be using foregroundpattern color. I added a little counter to report # of deletions. Tweak as necessary.
Advice on Macros: Understanding "object" language is NOT intuitive. It took me months to start to understand any sort of logical pattern behind the commands. You have to start to really understand the Object Browser (F2 in the VB editor) which is a good guide to help to understand the "pattern". In the Object Browser, right click & click on Group Members; I like this 'view' better. Spend some time and page down thru the objects & commands, and see the various property & method options.
Lastly, consider buying a VBA Help book. Don't buy one of those HUGE books; its more than you need. Not a lot of good Word VBA books out there; but many good Excel VBA books. You'll learn a lot reading an Excel VBA book (although the commands & options differ from Word VBA at times). I bought Excel Programming by Jinjer Simon, Wiley Publishing, 2nd Edition (LINK). It's pretty good ... or buy any book that is similar to this (i.e. the DUMMY series for example). Good luck!
Bookmarks