I need to isolate all of the textboxes and shapes in a Word file; i.e. I need to delete all of the text not in textboxes or shapes. Does anyone have any idea of how to do this in VBA? Any help would be greatly appreciated.
This hardly makes sense, when you want to remove TEXT from a TEXT processor. That would wreak havok with ANY shapes, resulting in many shapes being crammed together.
What's the purpose?
Skip, Just traded in my old subtlety... for a NUANCE!
Ctrl-A, then a wildacrd Find/Replace, with
Find '[^11-^255]'
Replace ''
(omit the quotes). You could, of course record this action with the macro recorder.
You don't say which version of Word you're using. Do note that a bug in Word 2007 may cause you to lose any shapes in the range.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.