MkII Posted November 17, 2006 Posted November 17, 2006 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.
MkII Posted November 17, 2006 Author Posted November 17, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now