>>I copied your code without changing into my RightMouse method of an editbox. But it still does not work. What I mean by "does not work" is that when I bring up the popup menu the Copy and Cut are enabled, even though no text is selected.
>
>You're correct. I retested the code and it doesn't work correctly with editbox or textbox.
Interesting that when I bring up a shortcut menu in Excel (with right mouse click) the Cut and Copy are always enabled, even if there is no text selected. So maybe this is a "standard" Windows application behaviour.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham