Question about searching inside building blocks for specific text
I have a template that has a bunch of custom building blocks. The building blocks contain a mixture of text, graphics, and tables, like mini-documents with a wide variety of subjects. I would like to build an application where the user enters a keyword and the macro (after attaching the special building block template to the active document) searches through the custom BBs and presents the name of those entries which contain the search term. I have searched the Internet and can't find any way to search within a BB collection, so I'm assuming that this is not a capability that is built in to Word.
Anyone have any idea how to do this? I suppose I could use Greg Maxey's excellent method of copying the contents of a BB into a temporary (hidden) word document, selecting all the contents of that hidden document and search for the term, and, if found, add the name of that BB to a listbox on a userform, then select all the contents of that hidden document, delete it, and repeat, over and over again, until all the custom BBs have been processed. I would imagine this will take some time depending on the number of BBs in the collection.
Does anyone have any thoughts on using this or an alternate method? I will take a stab at programming it, just wanted some advice.
Thank you.