Shortcutmenubar - How do I get a reference to it? 
Author Message
 Shortcutmenubar - How do I get a reference to it?

Hi,
I want to find out what the shortcutmenubar is for a control on a form.  The
problem is, it is usually blank when I retrieve the protpery, but I
certainly get a popup when I right clik in the control  So, how do I get the
actual shortcutmenubar that is the default?

I do this to get the ShortcutMenuBar, but it is always ""
Dim myStr As String
myStr = Screen.ActiveControl.ShortcutMenuBar

So, instead I have to do this to add a control button.  I would like to not
hard code the CommandBar, since I have similar controls in other places,
with other Commandbars.

Set newItem = CommandBars("Form View Subform
Control").Controls.Add(Type:=msoControlButton, Before:=1, Temporary:=True)



Mon, 13 Sep 2004 21:56:43 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ShortcutMenuBar

2. Doing Join, how to reference common fields?

3. Pass-by-reference: what am I doing wrong

4. MCI Control Gets Into a Tizzy - Done Events Not Being Generated

5. Getting references from external db

6. getting reference path errors, having trouble fixing.

7. utility.mda reference getting screwed up!

8. Getting a reference to a tlb in Outlook

9. Getting References to Multiple Processes

10. Getting a reference to a version of word opened with shell

11. Getting reference to class in a DLL

12. Getting individual footnote references

 

 
Powered by phpBB® Forum Software