I have this menuitem originally in FileMenu that I made ApplicationMenuItem, which I wish to remove selectively in code depending on the type of distribution.
There does not seem to be any direct method to access the ApplicationMenu.
I can access the menuitem I want to remove in FileMenuItem.Item(11)
and verify its name, but I cannot remove it with
If NoUpdate then FileMenu.remove(11)
The code does not trigger any error, but does not delete the menuItem from the ApplicationMenu. Yet, if I try to access it after deleting it, I do get an out of bound error. Meaning it is no longer in FileMenu.
If I try to access ApplicationMenuItem directly, I get a static reference error.
I will appreciate any pointer. TIA.