How can I change the assignment for a menu item?

Now I’ve worked out (thanks) how to find out which macro is called by a menu item or toolbar button, I now want to change them, but can’t see how. I’ve tried opening up the macro organiser and using the Assign… button but it doesn’t seem to do anything. The help files tell me hows to assign a macro to a new menu item, but there’s nothing there about changing an existing assignment, and nothing at all about assigning a macro to a toolbar item (even though “toolbars” is one of the tabs in the assignment sub-window). Do I really have to delete the toolbar button and start again?

@ptoye, check this out. I think it might be a duplicate of your question with a different answer.

Yes, that was another of my questions, and the answer to that helped me solve this one. But my question was really about whether one could change the assignment directly from the IDE rather than editing config files or deleting and reinstating the menu item, And Ratslinger says that you can’t.

Yes. To change a the macro pointed to by the toolbar or menu item you must delete the old and enter a new one. There is no modify facility. If you are careful enough and understand the format, you can modify the menubar.xml file in the .ods file directly (this is base upon a previous question of yours). The stored location of menubar.xml actually varies depending upon how the menubar/toolbar was created.

Thanks. I’ll do one or the other. Seems like a bit of a gap in the IDE.