You could do it as an add-in. If you create a new add in project from the template provided, then you should be able to find the "initialise" type event which fires when the addin is loaded and passes your code an object representing the VB environment. Then your project is represented by a load of objects which you can use to do what you want.<br><br>Mind you, I don't know whether or not all editions of VB can create add ins. If you can't do it that way, you might be lumbered with writing code that looks at the project file to get the paths for the module files and doing it that way.<br><br>Hope this rambling is of some help.<br>Jon <p> Jonathan<br><a href=mailto:j.w.george@virginnet.co.uk>j.w.george@virginnet.co.uk</a><br><a href= > </a><br>Working with: Visual Basic 6, Access 97, Visual Interdev 6, VBScript, Active Server Pages, SQL Server 6.5, Oracle 7