Submenu Items (Redux)

D

DATarbell

This is a follow-up to a post I made several weeks ago--and
I thank Klaus Linke for his responses at that time.

I am attempting to determine the absence/presence of a menu
on the Word menu bar. The context is that I have two
separate applications that I wish to have share a single
menu item ('Options'). Either of the applications may have
added a menu item ('Company Name') to the Word menu bar.
Now, the other one needs to determine whether or not it is
there, and if so, if a specific submenu item ('Options')
exists or not. (Note that the absence/presence issue of
one of existence, not of visibility.)

My problem is that I cannot find a unique value from which
I can have the FindControl event return the appropriate
CommandBarControls collection. The ID that is being
returned is 1, but that value (when used to access the
CommandBarControls collection) returns the File menu
collection, not my Company-Name-specific menu collection.
Likewise, both the Index and Tag values fail to provide
what I am seeking.

Any ideas?
 
D

DATarbell

Update: By addressing the submenu (i.e., 'Company Name')
by its offset in the main menu I have been able to get to
its collection of submenu items--34 times!

That is to say, I have retrieved 34 collections of the
submenu in question. I suspect that this reflects the
number of times that I have added this submenu during
testing. The problem now is to determine which one of the
34 is the currently active one!

Again, any thoughts...
 

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