handle for the menu option? |
Post Reply |
Author | |
tanyakut
Newbie Joined: 09 March 2004 Location: United States Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 15 March 2004 at 1:09pm |
How can I get a handle for one of the menus? I dont' have any problem with toolbar (I used "findControl" method): But menus don't work the same way... I was able to get a handle only for the main menus like "File", "View", "Tools" ..
|
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
Try this: set control = frmMain.CommandBars.ActiveMenuBar.FindControl(,ID_MY_V IEW, ,True) I think you're just missing the 'true' recursive property: Function FindControl([Type], Id As Long, [Visible], [Recursive]) Edited by robs |
|
tanyakut
Newbie Joined: 09 March 2004 Location: United States Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Thanks a lot! You are right. I missed TRUE flag.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |