Public Function CheckModule(strModName As String) As Boolean
Dim objMod As Object
For Each objMod In Application.CurrentProject.AllModules
If objMod.Name = strModName Then ' strModName Then
CheckModule = True
End If
Next
End Function
Must pass strModName. Returns True if it exists, False if it doesn't exist in the current project.