Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Toggle State on Custom Menu

I have a a Custom Menu, with items whose caption comes from the values
in an ado recordset. When I build the menu, I check the registry to
see if the caption on the menu matches a value in a specific key, and
if so that button goes to msoButtonDown

When the user selects a different item, I use ActionControl.Caption to
pass that variable to function and change the value of the registry
key

I then toggle the new choice as msoButtonDown

So far, so good except that the old choice remains msoButtonDown

I looked into Object, and CommandBarControl.FindControl, etc, to
toggle all menu items as msoButtonUp before setting the new value but
all of those examples seem to indicate that you need to know the name
of the control, and since my menu is populated dynamically, I don't
know the name at runtime, or do I?

Will I have to remove and rebuild all the items on the menu, and if so
is there an example I can refer to? Or, am i missing something on
iterating through the buttons?

Thanks
Reply
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
replace state names with state code abbreviations se7098 Excel Worksheet Functions 3 July 25th 09 06:41 PM
How can I show state-by-state data (as silos) on a map of NA Rob Charts and Charting in Excel 0 November 5th 07 03:41 PM
Converting State Names to State Abbreviations aznate Excel Discussion (Misc queries) 1 October 20th 06 06:52 AM
custom menu winqan Excel Discussion (Misc queries) 1 February 6th 06 10:51 AM
Custom Menu Help EAB1977 Excel Worksheet Functions 1 November 12th 05 01:02 AM


All times are GMT +1. The time now is 11:19 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"