Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Removing custom items from Office Toolbar


Recommended Posts

Posted

Office 2000

 

I want to remove insert > picture > from file from the word 2000 toolbar.

 

I've used custom ids to remove stuff like this before, and am sure there's a simple way to find out what each commands id is - anybody know?

 

Thank a lot

Mark

 

btw it's for a fellow tech, i've said that there are better ways to achieve what he wants - but his sch needs(want) this anyway.

Posted

Must've been feeling lucky tonight - was able to modify this VB script to give me the id:

 

Sub EnumerateControls()
   Dim icbc As Integer
   Dim cbcs As CommandBarControls

   Set cbcs = Application.CommandBars("Menu Bar").Controls("Insert").Controls("picture").Controls
   For icbc = 1 To cbcs.Count
       MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
   Next icbc
End Sub

 

 

This lists all the codes for that sub-menu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...