1

Today, I was looking for a method for customize contextual menu in excel. I found this topic useful:

http://www.rondebruin.nl/win/s6/win001.htm

However in the following XML code, this snnipet idMso="ContextMenuCell" doesn't work under any circumstances. I spent several hours looking for a table object id for idMso.

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
   <contextMenus>
      <contextMenu idMso="ContextMenuCell">
         <dynamicMenu id="MyDynamicMenu" 
        label= "My Dynamic Menu" imageMso="HappyFace" 
        getContent="GetContent" insertBeforeMso="Cut"/>
      </contextMenu>
   </contextMenus>
</customUI>
3
  • You should answer your own question in the answers. Commented Mar 22, 2016 at 19:48
  • Providing an answer to your own question is completely okay and also often quite useful. However, you should not answer in the question; post your answer as a separate answer instead. The question should really only contain the question. Commented Mar 22, 2016 at 19:49
  • Ok, thanks for your advise. Commented Mar 22, 2016 at 20:00

1 Answer 1

7

Try using idMso="ContextMenuListRange" for excel table context menu modification.

Sign up to request clarification or add additional context in comments.

1 Comment

That worked. Is there documentation anywhere, or are you just supposed to guess?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.