PopUp Menu

W

Weste

I have some ActiveX controls (combo box, text box, etc) in my Word doc. If
the doc is in design mode and I right click on one of the ActiveX controls a
menu pops up with Cut, Copy, Paste, etc. What is the name of this menu? I
am trying to get to it programmatically so I can disable it. I am using the
code below to disable some other menus.

For each cmdbar in CommandBars
If cmdbar.Name = "Visual Basic" then
cmdbar.Enabled = Fasle
.... add'l code
End If
Next

Thanks!
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?V2VzdGU=?=,
I have some ActiveX controls (combo box, text box, etc) in my Word doc. If
the doc is in design mode and I right click on one of the ActiveX controls a
menu pops up with Cut, Copy, Paste, etc. What is the name of this menu? I
am trying to get to it programmatically so I can disable it. I am using the
code below to disable some other menus.

For each cmdbar in CommandBars
If cmdbar.Name = "Visual Basic" then
cmdbar.Enabled = Fasle
.... add'l code
End If
Next
Use the above construct to write the name of each commandbar into a new
document, so that you have a list of all available (built-in) toolbars (which
include ALL the context menus). Note all the likely candidates, then check them
out. For example, list the controls they contain and see if those match what
you're seeing when you right-click. (If it corresponds at all to the "parent"
toolbar, it will be named something like "Design mode" or "Controls". But
there's no telling what the folks came up with...)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top