LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Adding events to newly add Menu

hi

All
I am adding a new menus in excel. these menus are
generated dynamically. there is no fix number of menus. I
am generating it using loop.

now i want to assign a click event to every menuitem, in
termes of VBA for every office.CommandBarButton

I have declared one object of this type with withevent
keyword.
the problem is how do I assign these many menusitems to
this withevent object.

It is not possible to create that many withevents object
dynamically for each menuitem.

please send your answers
waiting for reply
regards
Amod
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding dates to events Wally3178 Excel Discussion (Misc queries) 1 April 15th 08 08:54 AM
Adding buttons to a new menu bar Greegan Excel Worksheet Functions 1 April 7th 06 07:55 AM
Adding a menu DMc2005 Excel Discussion (Misc queries) 3 October 2nd 05 04:14 PM
Add list to newly created menu Anthony Excel Discussion (Misc queries) 4 February 25th 05 01:53 AM
add list to newly created menu Anthony Excel Worksheet Functions 1 February 25th 05 12:57 AM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"