Private Function FormExists(ByRef FName As String) As Boolean
    Dim lngIndex As Long
    
    For lngIndex = 0 To Forms.Count - 1
        If Forms(lngIndex).Name = FName Then
            FormExists = True
            Exit For
        End If
    Next
End Function