Code:
' See if there is already and instance.
    If App.PrevInstance Then
 ' Activate the previous instance
        AppActivate App.Title
        
' Terminate the new instance
        Unload Me
    End If