I’m trying to standardize my error handling and procedure comments, and am trying to create templates for the VBA Code Commenter and VBA Error Handler Add-ins. The problem I’m having is that the Error Handler inserts an extra comment when it substitutes for the token, and I was wondering if there was an easy way to prevent this.
For example, let’s say I have this line in the template:
‘ Created: $$D
Using the Code Commenter, it produces a line of code like this:
‘ Created: 03-29-2004
But when I use that same line in the Error Handler template, it produces this line of code:
‘ Created: 03-29-2004 ‘ErrorHandler: ErrorHandler:$$D=03-29-2004
How do I suppress that extra comment?