I've actually added a way to get the application context of a popup menu for the next release so you don't have to check menu items. Still have to test it though.
Finding the menu based on the menu items is a bit problematic, especially if the same menu item also appears in a top-level menu. You may have to check for two items in the OnMenuPopup event, such as
<code>
If menu.Find("Account Tab Properties...") <> -1 and menu.Find("Clear Alerts") <> -1 Then
' this is the account tab menu, do something
End If
</code>