Drew Wutka
DWUTKA at Marlow.com
Tue Jan 15 14:40:30 CST 2008
I know you can read and write a module as a whole string, then it would just be a matter of using Replace. As for VB, did your lose your CD or something? It doesn't interfere with .Net, as far as I could tell. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, January 15, 2008 2:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Massive module edits Guys, I use my error handler insertion wizard to insert error handlers in all of my modules. It will insert error handlers in every module, in every form etc. Unfortunately it was rewritten in VB6 and I am incapable of modifying the source. I need to change: MsgBox Err.Description, , "Error in Sub tfrmClaim.Form_Open" to LogErr Err.Number, Err.Description, Erl, "tfrmClaim", "Form_Open" I have written an error logger to log the errors and pop up a message box for all unhandled errors. Unfortunately the edit of all the functions in all of the modules is a HUGE undertaking. Does anyone have code for the VBE that will search for and replace strings? If I can get a good start without having to "do it from scratch" I can take it from there. I understand the VBE object model and could if necessary write this but I just thought I'd ask if someone out there has a reasonable "beginning". Additionally if anyone wants to volunteer to modify the Error handler insertion wizard, please contact me offline. You will secure you place in infamy... uh... history by taking on this project. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.