PDA

View Full Version : Searching code in multiple projects/documents



Gavint
01-23-2006, 07:55 PM
Does anyone know of an easy way to search for code across multiple documents?

I have a couple hundred coded Word templates and would like to be able to search for text strings within the VBA coding of those templates, all at once. Idealy returning a list of documents that contain the desired code.

I know I can open the documents up and search by module or project, but I have to go into each document project and repeat the search. Windows Explore allows you to search for text within a collection of documents, but it does not extend to the VBA code.

Alternatively, where does Word store the VBA code in a document and is there an easy way to extract it (in bulk), for indexing/analysis?

Thanks!

Norie
01-23-2006, 09:50 PM
Are you sure it doesn't extend to VBA code?

I've just done some tests and it found documents that I had VBA code in
according to what I specified.

Gavint
01-23-2006, 10:11 PM
Yes, positive. I get no hits on my searches using Explore, where the text is only in the VBA code.

I'm using XP and running searches against Word templates.

Can other's replicate this?