>Well, in this case, instead of:
>
>
>ON SELECTION POPUP Menu4 Do Myprocedure
>
>
>You could use:
>
>
>ON SELECTION POPUP Menu4 Do Myprocedure with "Option 4"
>
>
>or the equivalent:
>
>
>ON SELECTION POPUP Menu4 Myprocedure("Option 4")
>
>
>The text, "Option 4" in the example, can provide all the information you want. Just use different parameters for your different prompts, accept the parameters in function MyProcedure(), and act accordingly.
Note that if you use parameters, you could change the position, the prompts, or the shortcuts, for your menu options, at any moment, without affecting the action. I think this would be better than trying to detect either the menu position or the prompt.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)