Thanks JoaoTL the code is great.
As for why I am not using the documenter save as table function is because as far as I can see even when I use the document all, it does not show where a query is used. For example in which modules and which procedures.
If someone knows how to get the documenter to do this, I'm all ears.
Bill N