how would i create a menu that drops down when u right-click a certain word in a word document. just like in a spell and grammar check?
Printable View
how would i create a menu that drops down when u right-click a certain word in a word document. just like in a spell and grammar check?
Actually I have not come across anything that would let you do it in Office without major code and subclassing.
Are you trying to replace the popup or add to it?
A pop up is what i mean. Can this be done in vba?
I just want to be able to right-click on certain words and for a popup menu to appear and to be able to speify the items in the popup and their functions
That is by far not a simple task. You need to replace the default Office popup menu and sub-class all of it.
You will run into many issues since you are working with a very low level of calls in the Office subsystem.
I think it may be better to use a toolbar button to do what you need. The tb button can read the
selection and carry out your tasks. Also, you could add a hotkey combination for fater access too.
thanks as always for your help!
No prob. Sorry it wasn't an easy solution, but the workaround should work well enough?