X
XP
Using Office 2007 and Win XP;
If possible, could someone please modify the following function in such a
way that I would no longer have to reference Microsoft Visual Basic
Extensibility? (watch for line wrapping)
Public Function ProcedureExists(argProcedureName As String, argModuleName As
String) As Boolean
'returns true if a procedure already exists:
On Error Resume Next
ProcedureExists =
ActiveWorkbook.VBProject.VBComponents(argModuleName).CodeModule.ProcStartLine(argProcedureName, vbext_pk_Proc) <> 0
End Function
Thanks much in advance for your assistance.
If possible, could someone please modify the following function in such a
way that I would no longer have to reference Microsoft Visual Basic
Extensibility? (watch for line wrapping)
Public Function ProcedureExists(argProcedureName As String, argModuleName As
String) As Boolean
'returns true if a procedure already exists:
On Error Resume Next
ProcedureExists =
ActiveWorkbook.VBProject.VBComponents(argModuleName).CodeModule.ProcStartLine(argProcedureName, vbext_pk_Proc) <> 0
End Function
Thanks much in advance for your assistance.