peet is spot on in what he says...

Addins like Codesmart make doing the time consuming activities such as adding line numbers, formatting code etc etc. a snap.

If you want something that is free you can get MxTools. You can get it at: www.mxtools.com

I am sure it allows you put line numbers into your code but am not sure about it's flexibility in setting up error handling templates.

About using VBA.Erl, if you type "VBA." vb will list a number of functions however you will not fine "Erl" among them. This is what I mean by not showing up in intellisense.

Cheers

Jack