In vba, whenever we create a new function/sub, VBA will only create a 2 line template, is there a way to customize the behavior, so that a much more useful template is showing up. like:
Private Function FunctionName() As String
' Purpose:
' Arguments:
' Example:
' Returns:
Const cstrProc As String = "FunctionName"
On Error GoTo FunctionName_Err
'''''''''''''''''
FunctionName =
FunctionName_Exit:
Exit Function
FunctionName_Err:
Call lci_ErrMsgStd(mcstrMod & "." & cstrProc, Err.Number, Err.DESCRIPTION, True)
Resume FunctionName_Exit
End Function
Private Function FunctionName() As String
' Purpose:
' Arguments:
' Example:
' Returns:
Const cstrProc As String = "FunctionName"
On Error GoTo FunctionName_Err
'''''''''''''''''
FunctionName =
FunctionName_Exit:
Exit Function
FunctionName_Err:
Call lci_ErrMsgStd(mcstrMod & "." & cstrProc, Err.Number, Err.DESCRIPTION, True)
Resume FunctionName_Exit
End Function