This OP code will test if a VBComponent is present.
This will test if a procedure exists in some module of the indicated workbook.
Function ProcedureExists(proceedureName, wb As Workbook) As Boolean
Dim myComp As VBComponent
Dim myModule As CodeModule
Dim procType As Variant
For Each myComp In wb.VBProject.VBComponents
Set myModule = myComp.CodeModule
On Error Resume Next
For Each procType In Array(vbext_pk_Proc, vbext_pk_Get, vbext_pk_Let, vbext_pk_Set)
ProcedureExists = (myModule.ProcStartLine(proceedureName, procType) <> 0) Or ProcedureExists
Next procType
On Error GoTo 0
Next myComp
End Function