gallspaw

Need ArcID to remove Geoprocessing from main menu in ArcGIS 10.2  VBA

Discussion created by gallspaw on Aug 15, 2013
I have a vba script that I use to remove items from the main menu in ArcMap.  The following lines all work just fine to remove their respective menu items:  


    ThisDocument.CommandBars.Find(ArcID.File_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Edit_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.View_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Bookmarks_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Insert_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Selection_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Tools_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Windows_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Help_Menu).Delete
    ThisDocument.CommandBars.Find(ArcID.Cutomize_Menu).Delete


(Yes, "Customize" is misspelled in the ArcID's.)

My problem is that I have been unable to find the correct ArcID to remove the "Geoprocessing" menu item.  Following the convention of all the other items, the code to remove this item should, in theory, be:
   
   
       ThisDocument.CommandBars.Find(ArcID.Geoprocessing_Menu).Delete


However, this ArcID apparently does not exist...and I have been unable to find any other ArcID to gain control of the "Geoprocessing" menu item.

Can anyone tell me what the correct ArcID is?

Thanks,
Greg Allspaw

Outcomes