There is already a utility that comes with VB 5.0 to add a procedure to your code. The problem I have with it is that you always have to type in generic error handling code with each procedure. I have written an add-in that you can add to VB 5.0 that will add a procedure to your code (much like the one already in VB 5.0, but it will also insert some error handling code for you.)